Hello,
I use if statement to look for a certain word below but I have to use several "if" statement to catch all the possible capital letters( See below) is there a more efficient way to do that with out getting complicated
thanks
sample:
if>segment_1=hou,moveon,
if>segment_1=Hou,moveon,
if>segment_1=HOU,moveon,
is there an efficient way to deal with capital letters
Moderators: JRL, Dorian (MJT support)
-
- Macro Veteran
- Posts: 267
- Joined: Mon Sep 27, 2010 8:57 pm
- Location: Seattle, WA
What about this...
or force to lowercase, whichever works better.
Code: Select all
UpperCase>segment_1,segment_1
If>segment_1=HOU,moveon
...
Hi timle,
Here's what I would do...
Here's what I would do...
Code: Select all
Let>segment_1=Hou
UpperCase>segment_1,segment_1
If>segment_1=HOU,moveon
//if>segment_1=Hou,moveon,
//if>segment_1=HOU,moveon,
MDL>No... the value of variable segment_1 does not was equal to HOU (case-insensive)... now what?
//insert additional code here...
Goto>End
Label>moveon
MDL>Yes... the value of variable segment_1 was equal to HOU (case-insensive) so we've "moved on"
//insert additional code here...
Label>End
jpuziano
Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post -
Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post -

-
- Macro Veteran
- Posts: 267
- Joined: Mon Sep 27, 2010 8:57 pm
- Location: Seattle, WA
This will get the list of files names starting with "hou" and is not case sensitive
Then you can work with each one until the list is completed.
Code: Select all
GetFileList>%Desktop_Dir%\hou*.*,HOU_files,;
Separate>HOU_files,;,HOU_file_names