select – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search

How can we implement the new config select from ArmA here?

--Raedor 00:09, 3 July 2006 (CEST)

Thats a good point. Haven't gotten to the 's' yet but if you check out one of the other examples it should be easy to follow

Select Array
Select Boolean
Select Index 

Maybe something like this.

hoz 00:14, 3 July 2006 (CEST)

Boolean index

What was wrong with [1,2,3,4] select true? It's working.

I think Index should be Number or Boolean. That's why I was added both examples, one with True, one with number.

++Str 08:04, 7 October 2006 (CEST)


The first select command in the comref has the syntax:

array select index

Where array is of type Array and index is of type Number.


The second select command in the comref has the same syntax but:

array is of type Array and index is of type Boolean.


There is also a third select command:

config select index

Where config is of type Config and index is of type Number.

Using true instead of a number can be confusing for new people consulting the wiki command reference, it is exactly the same as saying select 1.

If booleans should be used in an example I think it should be the second select command

Planck 14:12, 7 October 2006 (CEST)

I agree using the boolean for a number adds to confusion. Why not add it to the notes though or as the last example. Having it as the first example might just confuse people.hoz 14:33, 7 October 2006 (CEST)

Boolean

I have removed the reference in the syntax to Boolean (but kept the example as 'interesting')

the reference would confuse a noob and is silly since the same comment applies to ANY operation utilizing a Number since a boolean is, 0, or 1

ook? 02:01, 30 August 2007 (CEST)