DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • August 25, 2019, 07:27:30 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Bool?  (Read 1256 times)
0 Members and 1 Guest are viewing this topic.
Khandarin
Guest
« on: February 19, 2008, 08:59:18 AM »

Yes, well, I am trying to figure out how to make modules while asking as few questions as possible. However, one thing has me rather confused.

I've seen several times a thing called 'bool'. For example:
                "leave"=>"Do they get any gold for leaving the cave?,bool|1",

Now, I -assume- it's like a yes/no statement, like true or false or something. But I haven't been able to figure out which is which. Is 1 yes and 0 no? Or the other way around? Or am I wrong completely, and if so what does bool actually mean? Am I a very silly person for not being able to figure this out? Yes, well, probably.

Anyway, any help would be appreciated Tongue Thanks!
Logged
ThricebornPhoenix
Codemeister
****
Offline Offline

Posts: 370


Dying is the easy part.


View Profile
« Reply #1 on: February 19, 2008, 09:12:38 AM »

http://en.wikipedia.org/wiki/Boolean_datatype
Logged

"I was talking aloud to myself. A habit of the old: they choose the wisest person present to speak to; the long explanations needed by the young are wearying."
Khandarin
Guest
« Reply #2 on: February 19, 2008, 09:21:34 AM »

Uhh... Thanks. I guess I probably should've known that *shifty*
Logged
ThricebornPhoenix
Codemeister
****
Offline Offline

Posts: 370


Dying is the easy part.


View Profile
« Reply #3 on: February 19, 2008, 09:26:20 AM »

Oh, to see how these datatypes are handled by core, take a look at lib/showform.php Smiley
Logged

"I was talking aloud to myself. A habit of the old: they choose the wisest person present to speak to; the long explanations needed by the young are wearying."
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
96 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search