Difference between revisions of "004D"

From GTAMods Wiki
Jump to navigation Jump to search
(Redirecting to Conditional statement)
 
(page updates)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
#REDIRECT [[Conditional statement]]
+
{{Icon|t}} '''GOTO_IF_FALSE'''
 +
<hr />
 +
'''Description'''
 +
: Jumps to a label if the condition is false.
 +
'''Syntax'''
 +
: 004D: jump_if_false [''label'']
 +
: else_jump [''label'']
 +
: jf [''label'']
 +
'''Parameters'''
 +
: [''label'']
 +
:: The position in the script it will go to, usually identified by a [[label]]
 +
 
 +
This opcode is used in conditional jumps; its primary usage is in [[conditional statement]]s. The destination point is identified by a label, which is then used as a parameter. In Sanny Builder where higher-level syntax is supported, the opcode is built into the syntax wherever conditional statements like [[Wikipedia:Conditional (computer programming)|if-then-else]] are used.
 +
 
 +
== Keywords ==
 +
if, conditional, statement, jf, jump, goto, false
 +
 
 +
== See also ==
 +
* {{Icon|t}} [[0002]], goto
 +
 
 +
[[Category:OpCodes]]

Latest revision as of 20:46, 31 December 2015

GTA III Vice City San Andreas GOTO_IF_FALSE


Description

Jumps to a label if the condition is false.

Syntax

004D: jump_if_false [label]
else_jump [label]
jf [label]

Parameters

[label]
The position in the script it will go to, usually identified by a label

This opcode is used in conditional jumps; its primary usage is in conditional statements. The destination point is identified by a label, which is then used as a parameter. In Sanny Builder where higher-level syntax is supported, the opcode is built into the syntax wherever conditional statements like if-then-else are used.

Keywords

if, conditional, statement, jf, jump, goto, false

See also