Re: LCB: Complex statement help needed in LCB

2016-03-01 Thread Stephen MacLean
> On Mar 1, 2016, at 4:30 PM, Peter TB Brett wrote: > > >> I'll give it a go. While I could just wrap the whole thing up and >> execute it as a script, I’m really trying to do as much as possible >> in LCB to learn. > > Yes. I quite like programming in LCB because the compiler helps catch (so

Re: LCB: Complex statement help needed in LCB

2016-03-01 Thread Peter TB Brett
On 01/03/2016 21:14, Stephen MacLean wrote: Thanks:) Being strongly typed has it’s plusses and minuses. I was hoping to avoid “parsed as number” by using the “any” type. It looks like that when you have a variable in LCB with a type of “any” and perform an action on it, it becomes that type. So

Re: LCB: Complex statement help needed in LCB

2016-03-01 Thread Stephen MacLean
> On Mar 1, 2016, at 3:58 PM, Peter TB Brett wrote: > > On 01/03/2016 20:44, Stephen MacLean wrote: >> Hi All, >> >> I’m looking for some help on complex statements in LCB. >> >> I’m trying to take a script statement like this: >> >> if (char x of tCardNum)*2 > 9 then > > Hi Stephen, > > Do

Re: LCB: Complex statement help needed in LCB

2016-03-01 Thread Peter TB Brett
On 01/03/2016 20:44, Stephen MacLean wrote: Hi All, I’m looking for some help on complex statements in LCB. I’m trying to take a script statement like this: if (char x of tCardNum)*2 > 9 then Hi Stephen, Don't forget that LCB is strongly typed. That means that a string isn't a number, so

LCB: Complex statement help needed in LCB

2016-03-01 Thread Stephen MacLean
Hi All, I’m looking for some help on complex statements in LCB. I’m trying to take a script statement like this: if (char x of tCardNum)*2 > 9 then into the equivalent statement in LCB. While it will compile fine, calling the function that contains the code above with give the dreaded error