Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Relation Quest

canoemike

New member
I am driving an assembly with a relation.
It is case sensitive (upper case)
Is there a way to make it so it will accept both upper and lower case text in one statement?

Below is a basic example of my solution


IF MODEL_DESC == "AA"
g_p_distance:0 = 8
width:0 = 10
ENDIF
IF MODEL_DESC == "aa"
g_p_distance:0 = 8
width:0 = 10
ENDIF

I would like to make it something like this

IF MODEL_DESC == "AA" or "aa"


Any Ideas?


Mike
 
Hi Mike


The correct syntax for this is as follows:


IF MODEL_DESC == "AA" | MODEL_DESC == "aa"
bla bla bla
ENDIF


The "|" character is an OR statement.


Hope this helps
smiley1.gif
 

Sponsor

Back
Top