I'm trying to do some if conditions with strings. I run into a lot of issues with trying to check for things that are strings.
for example. /if (${Me.Class} == Berserker) /dothings
Problem is that I run into a non numeric B. This occurs at ${Me.Class} before it even runs into == Berserker.
Is there something I am missing or are strings not comparable? Logically speaking if one equals the other, shouldn't the result be true? Or does it not have string comparison built in? I mean I've gotten around that by using ID's instead, but figured there might be able to compare strings as there are other locations where ID's are harder to come by via additional variables and coding.
INI file setting PullCast=Flame Shock
then use PullCastID = ${Spell[${PullCast}].ID} then use /if (${PullCastID} != Null) /dothings
But yeah, question is can I compare strings. if so, how.
for example. /if (${Me.Class} == Berserker) /dothings
Problem is that I run into a non numeric B. This occurs at ${Me.Class} before it even runs into == Berserker.
Is there something I am missing or are strings not comparable? Logically speaking if one equals the other, shouldn't the result be true? Or does it not have string comparison built in? I mean I've gotten around that by using ID's instead, but figured there might be able to compare strings as there are other locations where ID's are harder to come by via additional variables and coding.
INI file setting PullCast=Flame Shock
then use PullCastID = ${Spell[${PullCast}].ID} then use /if (${PullCastID} != Null) /dothings
But yeah, question is can I compare strings. if so, how.