Difference between revisions of "0019"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 0019=2, %1d% > %2d% | description = Checks if a value of a specific local variable is bigger than an integer value. | p1 = local variable | p2 …')
 
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''IS_INT_LVAR_GREATER_THAN_NUMBER'''
| ini        = 0019=2, %1d% > %2d%
+
<hr />
| description = Checks if a value of a specific local variable is bigger than an integer value.
+
'''Description'''
| p1          = local variable
+
: Checks if the value stored in the local variable is greater than the integer number
| p2          = integer value
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: 0019:  [''local var''] > [''int'']
}}
+
: [''local var''] > [''int'']
This is an conditional opcode which checks if a value of a specific local variable is bigger than an integer value.
+
'''Parameter'''
 +
: [''local var'']
 +
:: Local variable
 +
: [''int'']
 +
:: Integer value
  
==Sanny Builder Example==
+
== Keywords ==
 +
local, variable, var, integer, comparison, check, greater
  
<source lang="scm">0019: 0@ > 0</source>
+
== See also ==
 +
* [[0018]] &ndash; checks if the value in the global var is greater than the int number
 +
* [[0020]] &ndash; checks if the value in the global var is greater than the float number
 +
* [[0021]] &ndash; checks if the value in the local var is greater than the float number
  
==Keywords==
+
[[Category:OpCodes]]
compare, local variable, math, integer, bigger
 
 
 
[[Category:Math_OpCodes]]
 

Revision as of 17:43, 8 February 2015

GTA III Vice City San Andreas IS_INT_LVAR_GREATER_THAN_NUMBER


Description

Checks if the value stored in the local variable is greater than the integer number

Syntax

0019: [local var] > [int]
[local var] > [int]

Parameter

[local var]
Local variable
[int]
Integer value

Keywords

local, variable, var, integer, comparison, check, greater

See also

  • 0018 – checks if the value in the global var is greater than the int number
  • 0020 – checks if the value in the global var is greater than the float number
  • 0021 – checks if the value in the local var is greater than the float number