a != b: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.00|= Game version | |||
____________________________________________________________________________________________ | |||
| a '''not equal''' to b |= Description | |||
____________________________________________________________________________________________ | |||
| a '''<nowiki>!=</nowiki>''' b |= Syntax | |||
|p1= a: [[Number]], [[Side]], [[String]], [[Object]], [[Group]], [[Structured Text]], [[Config]], [[Display]] or [[Control]] |= | |||
|p2= b: [[Number]], [[Side]], [[String]], [[Object]], [[Group]], [[Structured Text]], [[Config]], [[Display]] or [[Control]] |= | |||
| [[Boolean]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>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."}</pre> |= | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[ | [[Category:Scripting Commands|#]] | ||
[[Category:Scripting Commands OFP 1.96|#]] | |||
[[Category:Scripting Commands OFP 1.46|#]] | |||
[[Category:Scripting Commands ArmA|#]] |
Revision as of 21:24, 1 August 2006
Description
- Description:
- a not equal to b
- Groups:
- Uncategorised
Syntax
- Syntax:
- a != b
- Parameters:
- a: Number, Side, String, Object, Group, Structured Text, Config, Display or Control
- b: Number, Side, String, Object, Group, Structured Text, Config, Display or Control
- Return Value:
- Boolean
Examples
- Example 1:
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:
- See also needed
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