Either I’m going slightly mad or casting using the “as” keyword works differently to the old way of casting.
Here’s some code to illustrate:
showFormItem = (((e.target as CheckBox).selected as String) == _local.displayTriggerValue[i]) ? true : falseNow this gives a different result to:
showFormItem = (String((e.target as CheckBox).selected) == _local.displayTriggerValue[i]) ? true : false
WTF?!
I’m pretty sure I’ve got my brackets in the correct spot.
Yhelp!
Recent Comments