Re: 'IsNumber' and 'IsAlpha' functions syntax

John Shotsky

I see that in my email, the :notalpha was pulled up one line. It should be on its on its own line. I think that is just a thing with Outlook, but thought I'd mention it, since others use outlook too.

-----Original Message-----
From: <> On Behalf Of loro
Sent: Thursday, July 30, 2020 7:13 AM
Subject: Re: [NTB-Clps] 'IsNumber' and 'IsAlpha' functions syntax

Hello James,

James McBride wrote:
I cannot seem to use these functions properly. I have the following
simple loop to get some input and say 'Is It alpha' (or is it numeric,
when I change it.


^!Set %InVal%=^?{(S=10)}

^!Prompt Value Entered is ^%InVal%

^!If ^$IsAlpha(^%InVal%)$=1 ^!Prompt "Is Alpha" else ^!Prompt "Is Not

^!GoTo GetInput
It seems you can't have the prompt code on the same line as the If statement. If you split it up it works.

^!Set %InVal%=^?{}
^!Prompt Value Entered is ^%InVal%
^!If ^$IsAlpha(^%InVal%)$=1 next else notalpha ^!Prompt Is Alpha ^!Goto end :notalpha ^!Prompt Is Not Alpha ^!GoTo GetInput


Join to automatically receive all group messages.