I have been trying for a few days, to get a simple if/else
script to work.
The issue I am having is when I check syntax, it says:
error illegal use if reserved word else
The script I am using is:
if (aira.delsec.presence = "hidden")
airb.tblair._Row1.addInstance(1)
airb.presence = "visible"
aira.delsec.presence = "visible";
else
airb.tblair._Row1.addInstance(1)
Also, I have tried:
if (aira.delsec.presence = "hidden");{
airb.tblair._Row1.addInstance(1)
airb.presence = "visible"
aira.delsec.presence = "visible";
} else
{
aira.delsec.presence = "visible";
}
If I remove the else
then the if
statement works fine. I am really pulling out my hair and any help would be greatly appreciated.