blob: ec06aac9928e79a6b55875eea44d153ac3714952 (
plain)
1
2
3
4
5
6
7
8
9
|
include stdlib
$my_array = ['key_one']
if has_element($my_array, 'key_two') {
notice('we will not reach here')
}
if has_element($my_array, 'key_one') {
notice('this will be printed')
}
|