Text only
|
Text with Images
GLBasic forum
Main forum => GLBasic - en => Topic started by: okee on 2012-Jul-10
Title:
How to check if an array has an element
Post by:
okee
on
2012-Jul-10
I want to check if there are any elements in an array of Types
ie
Enemy[CurrentEnemy].Weapons[]
something like
Code
(glbasic)
Select
Expand
if Enemy[CurrentEnemy].Weapons[] = Null
Title:
Re: How to check if an array has an element
Post by:
kanonet
on
2012-Jul-10
Try:
Code
(glbasic)
Select
Expand
if LEN(Enemy[CurrentEnemy].Weapons[]) = 0
Title:
Re: How to check if an array has an element
Post by:
okee
on
2012-Jul-10
Thanks that did it ::)
Text only
|
Text with Images