cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Function OR ?

EL_10548943
5-Regular Member

Function OR ?

Hello everyone,

I'm working on the program  in CREO.

And Iwould like to know if we can add a OR in a IF function, 

IF=="....."OR"....."

Like in a function if i want to add 2  things

In my case it's about 2 texts value (Attached)

 

ACCEPTED SOLUTION

Accepted Solutions
EL_10548943
5-Regular Member
(To:EL_10548943)

Ok i find it by myself it's actaully     |   (altgr+ 6), not very intuitive, for the OR and you have to rewrite the value in my case 

IF MARQUE == "ITOH" | MARQUE== "I"

View solution in original post

2 REPLIES 2
EL_10548943
5-Regular Member
(To:EL_10548943)

Ok i find it by myself it's actaully     |   (altgr+ 6), not very intuitive, for the OR and you have to rewrite the value in my case 

IF MARQUE == "ITOH" | MARQUE== "I"

When programming in a new language it is quite common to have to investigate as to the proper nomenclature for logical operators. Using a "pipe" or | for "OR" is typical, as is "||" (two "pipes"). Some languages use .OR., Excel uses OR(...). You just have to do a bit of a search.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags