How to check if an array has an element

Previous topic - Next topic

okee

I want to check if there are any elements in an array of Types
ie
Enemy[CurrentEnemy].Weapons[]

something like
Code (glbasic) Select

if Enemy[CurrentEnemy].Weapons[] = Null
Android: Samsung Galaxy S2 -  ZTE Blade (Orange San Francisco) - Ainol Novo 7 Aurora 2
IOS: 2 x Ipod Touch (1G)

kanonet

Try:
Code (glbasic) Select

if LEN(Enemy[CurrentEnemy].Weapons[]) = 0

Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

okee

Android: Samsung Galaxy S2 -  ZTE Blade (Orange San Francisco) - Ainol Novo 7 Aurora 2
IOS: 2 x Ipod Touch (1G)