Difference between revisions of "004D"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
 
Line 1: Line 1:
{{OpCode
+
{{Icon|t}} '''GOTO_IF_FALSE'''
| ini        = 004D=1,%1p%
+
<hr />
| p1          = [[Label]]
+
'''Description'''
| description = Used in [[Wikipedia:If-then-else|IF]] statement
+
: Jumps to a label if the condition is false.
| game        = GTA3, Vice City, San Andreas
+
'''Syntax'''
}}
+
: 004D: jump_if_false [''label'']
This is used to jump to a different label if the conditional statement is false. More information on how to use this opcode [[Conditional statement|here]].
+
: else_jump [''label'']
 +
: jf [''label'']
 +
'''Parameters'''
 +
: [''label'']
 +
:: The position in the script it will go to, usually identified by a [[label]]
  
==Keywords==
+
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.
if, conditional, statement, jf, jump if false
+
 
 +
== 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