Re: ClipClass WAS: 'IsNumber' and 'IsAlpha' functions syntax

James McBride
 

Thank you, John! That structure seemed to work for me......seems so obvious to do that, but for some reason, to me, it wasn’t ☹

-----Original Message-----
From: Clips@Notetab.groups.io <Clips@Notetab.groups.io> On Behalf Of John Shotsky
Sent: Friday, July 31, 2020 10:05 AM
To: Clips@Notetab.groups.io
Subject: Re: [NTB-Clps] ClipClass WAS: 'IsNumber' and 'IsAlpha' functions syntax

I do this 'conditional' fairly often
If this condition is false Exit
If this condition is false Exit
Here is what needs to be done, because they were both true.
:Exit
Regards,
John

-----Original Message-----
From: Clips@Notetab.groups.io <Clips@Notetab.groups.io> On Behalf Of loro
Sent: Friday, July 31, 2020 6:46 AM
To: Clips@Notetab.groups.io
Subject: Re: [NTB-Clps] ClipClass WAS: 'IsNumber' and 'IsAlpha' functions syntax

At 09:23 AM 2020-07-31 -0400, James McBride wrote:
Holy Schnikes, that is a 'lotta' emails (yeah, I just made that pun
up.....you can thank me later 😝 )
Maybe I should buy a domain like alottaemails.com to use for my email needs. :-)

Now that I know that the clip language handles 'if' statements in a
rather strange way, I know that they may require some special
debugging. I have a series of conditions that need to be met to set a
certain variable and it def doesn’t seem that it works right if I just do:

^!If <condition1> and <condition2> action
But sometimes it does!

^!If 2 = 2 ^!calc

I'm confused about this too. Originally it didn't enter my mind that a command could be placed on the same line as a conditional statement. Then I saw some clips that did exactly that. I still keep things on separate lines since that's what I'm used to, but it would be interesting to know what the rules are, when things can be shoved together on one line and when they can't. It seems pretty random to me, but I'm sure it isn't.

Lotta

--
Computer says no.

Join Clips@Notetab.groups.io to automatically receive all group messages.