Difference between revisions of "0844"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 8: Line 8:
 
}}
 
}}
  
This opcode returns true if the string represented by the global variable is empty, i.e. contains no characters, only zero bytes. Opcodes 0845, 0846, and 0847 behaves similarly to this.
+
This conditional opcode returns true if the string represented by the global variable is empty, i.e. contains no characters, only zero bytes. Opcodes 0845, 0846, and 0847 behaves similarly to this.
  
 
== Keywords ==
 
== Keywords ==
 
string, empty, check, var, text, label
 
string, empty, check, var, text, label

Latest revision as of 05:17, 22 December 2016

San Andreas IS_VAR_TEXT_LABEL_EMPTY


Description
Checks if the string is empty
Syntax
0844:   string [global short string var] empty
Parameter
[global short string var]
Global variable containing a string of up to 7 characters

This conditional opcode returns true if the string represented by the global variable is empty, i.e. contains no characters, only zero bytes. Opcodes 0845, 0846, and 0847 behaves similarly to this.

Keywords

string, empty, check, var, text, label