Got a question that the wiki doesn't answer? Ask on the forum (preferred), or join us on IRC.

BeastNode

CommandHelper/Staged/API/array contains ic

From EngineHub.org Wiki
Jump to: navigation, search



Vital Info

Name array_contains_ic
Returns boolean
Usages array, testValue
Throws CastException
Since 3.3.0
Restricted
No
Optimizations NO_SIDE_EFFECTS

Description

Works like array_contains, except the comparison ignores case.

Usages

array_contains_ic(array, testValue)

Examples (How do these work?)

Example 1

Demonstrates usage

Given the following code:

1   array_contains_ic(array('A''B''C'), 'A')


The output would be:

:true

Example 2

Demonstrates usage

Given the following code:

1   array_contains_ic(array('A''B''C'), 'a')


The output would be:

:true

Example 3

Demonstrates usage

Given the following code:

1   array_contains_ic(array('A''B''C'), 'd')


The output would be:

:false


See Also

array_contains



Navigation menu