Newbie needs help

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Newbie needs help

Post by dunbarx » Fri Oct 21, 2022 12:09 am

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

Emily-Elizabeth
Posts: 101
Joined: Mon Jan 03, 2022 7:10 pm

Re: Newbie needs help

Post by Emily-Elizabeth » Fri Oct 21, 2022 12:55 am

What's the data that's in the currentData variable? Are they comma-delimited items or words separated by spaces?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Newbie needs help

Post by richmond62 » Fri Oct 21, 2022 6:02 am

Second use of currentData is spelllt ronglee.

stam
Posts: 3069
Joined: Sun Jun 04, 2006 9:39 pm

Re: Newbie needs help

Post by stam » Fri Oct 21, 2022 10:18 am

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...

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Newbie needs help

Post by dunbarx » Fri Oct 21, 2022 3:23 pm

Richmond.

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

Craig

Post Reply