IIf in plugin for arrays

How to use IIf function in plugin for array ?
Sth like that in afl:

AddColumn(A,"A",1.1,fgcolor=IIf(A>70,colorRed, IIf(A<30, colorGreen,0)));

where A is an array.

Recommended reading:

Also, don't rewrite AFLs to DLLs, it is bad idea: 5 reasons why you should NOT write DLLs

Your user account isn't marked with License verified badge. Did you purchase AmiBroker license?

Only users with License verified badge are allowed to post on this forum.

So before posting, make sure you verify your license as explained here.

Thread closed until original poster proves licensing status.