Macro: Case Sensitivity / Uppercase Lowercase

Macro: Case Sensitivity / Uppercase Lowercase

jake.montgomery
Enthusiast Enthusiast
902 Views
2 Replies
Message 1 of 3

Macro: Case Sensitivity / Uppercase Lowercase

jake.montgomery
Enthusiast
Enthusiast

Hello,

 

Does anyone know if there is a macro command to convert or analyze a variable to a specific case? I am checking a project to see if specific data exists, but I do not want to worry about if the user used uppercase, lowercase, or a mixture. 

 

Thank you,

 

Jacob

0 Likes
Accepted solutions (1)
903 Views
2 Replies
Replies (2)
Message 2 of 3

kukelyk
Advisor
Advisor
Accepted solution

 

try:

lcase(Tool.Type) == 'end_mill'
ucase(Tool.Type) == 'END_MILL'

Message 3 of 3

jake.montgomery
Enthusiast
Enthusiast

Worked perfectly!

 

Thank you very much

0 Likes