Is there something similar to "select case" in macro scheduler ro do i need to use nested "ifs"?
Basically I have one of 7 scenarios i want o check on and make a selection (set a variable) depending on which of the 7 is true.
cheers
Griz
select case
Moderators: JRL, Dorian (MJT support)
I'm not sure what you're looking for.
This example will determine the case of each character in a string.
The line Let>changedvalue={upper(%value%)} demostrates how to set text to upper case. Change "upper" to "lower" to set text to lower case.
This example will determine the case of each character in a string.
The line Let>changedvalue={upper(%value%)} demostrates how to set text to upper case. Change "upper" to "lower" to set text to lower case.
Code: Select all
Let>testtext=QwErTy
Length>testtext,textlen
Let>kk=0
Let>answer=
Repeat>kk
Add>kk,1
MidStr>testtext,KK,1,value
Let>changedvalue={upper(%value%)}
If>%changedvalue%=%value%
Concat>answer,%value% is upper case%CRLF%
Else
Concat>answer,%value% is lower case%CRLF%
EndIf
Until>kk,%textlen%
MDL>answer
-
- Newbie
- Posts: 3
- Joined: Tue Feb 03, 2009 9:05 pm
Hi JRL - thanks for your reply - but that's not what I'm after. What I was looking for is something like this
http://www.vbtutor.net/lesson8.html
cheers
-Griz
http://www.vbtutor.net/lesson8.html
cheers
-Griz
-
- Newbie
- Posts: 3
- Joined: Tue Feb 03, 2009 9:05 pm