Code: Select all
${If[${Me.Gem[2].ID},${Math.Calc[${Me.CurrentMana}/${Me.Gem[2].Mana}]},]}The above code does just this. But if a spell is not memorized, ${Me.Gem[2].ID} is NULL, but the ${Math.Calc[] code still gets executed, and results in a division by zero error.
Is this the intended behaviour, or am I mis-using ${If[,,]} ?


