Page 1 of 1

Newbie needs help

Posted: Fri Oct 21, 2022 12:09 am
by dunbarx
I have a variable "currentData".

In a handler I have a problem:

Code: Select all

  put item 1 of currentData into temp
   put temp contains "EMG" into xxx
      if item 1 of currrentData contains "EMG" then
        beep 2  -- does not fire
     end if
     
     if xxx = "true" then beep 2 -- but this does
The conditional does not fire. The last line below it does. I am depressed.

Craig

Re: Newbie needs help

Posted: Fri Oct 21, 2022 12:55 am
by Emily-Elizabeth
What's the data that's in the currentData variable? Are they comma-delimited items or words separated by spaces?

Re: Newbie needs help

Posted: Fri Oct 21, 2022 6:02 am
by richmond62
Second use of currentData is spelllt ronglee.

Re: Newbie needs help

Posted: Fri Oct 21, 2022 10:18 am
by stam
richmond62 wrote:
Fri Oct 21, 2022 6:02 am
Second use of currentData is spelllt ronglee.
This is why i always use strict compilation mode/variable checking...

Re: Newbie needs help

Posted: Fri Oct 21, 2022 3:23 pm
by dunbarx
Richmond.

Thank you. I was so wrapped up in finding a logic or syntax issue that I never looked at a brain issue.

Craig