select – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "<code>" to "<code style="display: block">")
 
(8 intermediate revisions by 6 users not shown)
Line 13: Line 13:
[[User:Hoz|hoz]] 00:14, 3 July 2006 (CEST)
[[User:Hoz|hoz]] 00:14, 3 July 2006 (CEST)


===Boolean index===
=== Boolean index ===
What was wrong with <code>[1,2,3,4] select true</code>? It's working.
What was wrong with <code style="display: block">[1,2,3,4] select true</code>? It's working.


I think Index should be <code>[[Number]] or [[Boolean]]</code>. That's why I was added both examples, one with True, one with number.
I think Index should be <code style="display: block">[[Number]] or [[Boolean]]</code>. That's why I was added both examples, one with True, one with number.


++[[User:Str|Str]] 08:04, 7 October 2006 (CEST)
++[[User:Str|Str]] 08:04, 7 October 2006 (CEST)
Line 38: Line 38:
Where config is of type Config and index is of type Number.
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
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


[[User:Planck|Planck]] 14:12, 7 October 2006 (CEST)
[[User:Planck|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.[[User:Hoz|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
[[User:Mikero|ook?]] 02:01, 30 August 2007 (CEST)

Latest revision as of 11:52, 11 January 2023

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)