Difference between revisions of "0018"

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

Latest revision as of 09:51, 12 February 2015

GTA III Vice City San Andreas IS_INT_VAR_GREATER_THAN_NUMBER


Description

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

Syntax

0018: [global var] > [int]
[global var] > [int]

Parameter

[global var]
Global variable
[int]
Integer value

Keywords

global, variable, var, integer, comparison, check, greater

See also

  • 0019 – checks if the int value in the local var is greater than the int number
  • 001A – checks if the int number is greater than the int value in the global var
  • 001B – checks if the int number is greater than the int value in the local var