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: Klaus, FourthWorld, heatherlaine, kevinmiller

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

Newbie needs help

Post 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
Emily-Elizabeth
Posts: 217
Joined: Mon Jan 03, 2022 7:10 pm
Contact:

Re: Newbie needs help

Post by Emily-Elizabeth »

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: 10428
Joined: Fri Feb 19, 2010 10:17 am

Re: Newbie needs help

Post by richmond62 »

Second use of currentData is spelllt ronglee.
stam
Posts: 3214
Joined: Sun Jun 04, 2006 9:39 pm

Re: Newbie needs help

Post 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...
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10507
Joined: Wed May 06, 2009 2:28 pm

Re: Newbie needs help

Post 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
Post Reply