Difference between revisions of "Talk:GetDisabled"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>HawkFest
(New page: If the calling object is enabled, what does it return, 0? -1?...? --~~~~)
 
imported>HawkFest
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== False Value? ==
If the calling object is enabled, what does it return, 0? -1?...? --[[User:HawkFest|HawkFest]] 05:33, 19 February 2008 (EST)
If the calling object is enabled, what does it return, 0? -1?...? --[[User:HawkFest|HawkFest]] 05:33, 19 February 2008 (EST)
:For all "boolean" functions, that is, "true/false" functions like this one, "true" is 1 and "false" is 0.
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 06:43, 19 February 2008 (EST)
::Ok it returns a boolean. It wasn't that clear (I've seen many such methods or functions returning -1 when they don't return a boolean value on other platforms/APIs/Languages), which is why I asked. Btw, thanks a lot DragooWraith for taking your time answering questions. I'm sure you already have a full container of "thank you for your work" posts, so here's another one ;)... --[[User:HawkFest|HawkFest]] 22:44, 17 December 2008 (EST)

Latest revision as of 22:52, 17 December 2008

False Value?[edit source]

If the calling object is enabled, what does it return, 0? -1?...? --HawkFest 05:33, 19 February 2008 (EST)

For all "boolean" functions, that is, "true/false" functions like this one, "true" is 1 and "false" is 0.
Dragoon Wraith TALK 06:43, 19 February 2008 (EST)
Ok it returns a boolean. It wasn't that clear (I've seen many such methods or functions returning -1 when they don't return a boolean value on other platforms/APIs/Languages), which is why I asked. Btw, thanks a lot DragooWraith for taking your time answering questions. I'm sure you already have a full container of "thank you for your work" posts, so here's another one ;)... --HawkFest 22:44, 17 December 2008 (EST)