a != b: Difference between revisions
Jump to navigation
Jump to search
Dr Eyeball (talk | contribs) m (A2 symbol/variable category) |
(add. classification) |
||
Line 62: | Line 62: | ||
[[Category:Command_Group:_Math|#]] | [[Category:Command_Group:_Math|#]] | ||
[[Category:Command_Group:_Variables|#]] | [[Category:Command_Group:_Variables|#]] | ||
[[Category:Scripting Commands VBS2|{{uc:{{PAGENAME}}}}]] |
Revision as of 02:10, 2 December 2009
Description
- Description:
- Returns whether one value is not equal to another.
- Groups:
- Uncategorised
Syntax
- Syntax:
- a != b
- Parameters:
- a: Number, Side, String, Object, Group, Structured Text, Config, Display or Control; since VBS2 1.24: Location
- b: Number, Side, String, Object, Group, Structured Text, Config, Display or Control; since VBS2 1.24: Location
- Return Value:
- Boolean - true if a is not the same as b
Examples
- Example 1:
- Some basic examples of the usage of this operator. counter != 4 side player != west nameofplayer != "John Doe" vehicle player != player group player != group soldierOne if (fuel truck1 != 1) then { hint "Truck1 has less than a full tank of fuel."; }
Additional Information
- See also:
- Operators
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
- Ceeeb
- In OFP v1.96, comparison of strings is not case sensitive. Example : "STRINGtext" != "stringTEXT" returns false.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Command Group: Math
- Command Group: Variables
- Scripting Commands VBS2