a == b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (moved note)
mNo edit summary
Line 26: Line 26:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
{{subst:Note|
<dd class="notedate">Posted on August 14, 2006 - 14:03</dd>
<dt class="note">'''[[User:Hoz|hoz]]'''</dt><dd class="note">
'''''Comments from before the template conversion.'''''
'''''Comments from before the template conversion.'''''


Line 45: Line 46:


The workaround for the second line is:<br>
The workaround for the second line is:<br>
  ? ([[count]] MyArray) <nowiki>==<nowiki> 0 : [[hint]] "This is a test."
  ? ([[count]] MyArray) <nowiki>==</nowiki> 0 : [[hint]] "This is a test."
}}
</dd>


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

Revision as of 15:03, 14 August 2006

Hover & click on the images for description

Description

Description:
Check if valuea is equal to valueb.
Groups:
Uncategorised

Syntax

Syntax:
Boolean
Parameters:
valuea: Number, Group, Side, String, Object, Structured Text, Config, Display or Control
valueb: Number, Group, Side, String, Object, Structured Text, Config, Display or Control
Return Value:
Return value needed

Examples

Example 1:
if (player == leader group player) then {hint "You are the leader of your group."} else {hint "Someone else is the boss"}
Example 2:
if (name player == "Billy") then {hint "Hello Billy, how are you?"}

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

Notes

Posted on August 14, 2006 - 14:03
hoz
Comments from before the template conversion. Does not work with the types Boolean and Array. i.e. the arguments:  ? MyBoolean ==<nowiki> [] : [[hint]] "This is a test." and  ? MyArray <nowiki>==<nowiki> [] : [[hint]] "This is a test." ...will cause errors. Instead of the first line use:<br>  ? MyBoolean : [[hint]] "This is a test." The workaround for the second line is:<br>  ? ([[count]] MyArray) <nowiki>== 0 : hint "This is a test."

Bottom Section