a != b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 44: Line 44:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''</dt>
<dd class="note">
In '''OFP v1.96''', comparison of [[string|strings]] is not case sensitive. ''Example : "STRINGtext" != "stringTEXT" returns [[false]].''
</dd>


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 13:00, 5 February 2007

Hover & click on the images for description

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
b: Number, Side, String, Object, Group, Structured Text, Config, Display or Control
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