Difference between revisions of "Talk:If"

Jump to navigation Jump to search
357 bytes added ,  18:04, 8 July 2008
Testing negative numbers
imported>HawkFest
imported>Haama
(Testing negative numbers)
Line 82: Line 82:
:[[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>]] 18:06, 26 May 2008 (EDT)
:[[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>]] 18:06, 26 May 2008 (EDT)
::I found it confusing as the statement is right, but also showed an opposite behaviour which, IMHO, needs to be clarified as it impacts the design of boolean expressions, in terms operators notations for scripting any conditional expressions. Ok, I will modify the article. I just wanted some feedback about my own understanding before doing so: even though it is trivial to modify something in the Wiki, it's not that trivial to detect if the modified article can mislead to some error of understanding from the neophyte reader (until the article actually gets changed), something I wouldn't want to do... Thanks! :) --[[User:HawkFest|HawkFest]] 18:19, 26 May 2008 (EDT)
::I found it confusing as the statement is right, but also showed an opposite behaviour which, IMHO, needs to be clarified as it impacts the design of boolean expressions, in terms operators notations for scripting any conditional expressions. Ok, I will modify the article. I just wanted some feedback about my own understanding before doing so: even though it is trivial to modify something in the Wiki, it's not that trivial to detect if the modified article can mislead to some error of understanding from the neophyte reader (until the article actually gets changed), something I wouldn't want to do... Thanks! :) --[[User:HawkFest|HawkFest]] 18:19, 26 May 2008 (EDT)
== Testing negative numbers ==
I had some weird results with
if (SomeVar >= -1)
but the line worked fine with
if ((SomeVar + 1) >= 0)
Are negative numbers not handled properly? Do they need to be set to a variable first? Thought I'd seen so on another page, but it's not on this one (where it should be).--[[User:Haama|Haama]] 19:04, 8 July 2008 (EDT)
Anonymous user

Navigation menu