Difference between revisions of "If"
Jump to navigation
Jump to search
m
→Comparisons and Expressions: ommiting "== 1"
imported>JOG |
imported>JOG m (→Comparisons and Expressions: ommiting "== 1") |
||
Line 93: | Line 93: | ||
IF a * ( 5 + c ) - 14 == b | IF a * ( 5 + c ) - 14 == b | ||
IF 2*(a*(5+c)-14)==b - -b | IF 2*(a*(5+c)-14)==b - -b | ||
If a variable or the result of a function returns 1 you don't need to test on "== 1" | |||
IF Done | |||
IF Getisid MyNPC | |||
IF IsActor && Flag | |||
Do the same as | |||
IF Done == 1 | |||
IF Getisid MyNPC == 1 | |||
IF IsActor == 1 && Flag == 1 | |||
[[Category:Commands]] | [[Category:Commands]] |