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

1-Newbie

## "and" and "or" operators in Mechanism

I am using Mechanism 2, Release M080. I am writing a user defined function
expression for a Force/Torque definition. The operators that are available
include a "logical and" and a "logical or" operator. I cannot find
anything in the ProE WF2 Help Topic Collection - Mechanism Design
Extension that describes how these two operators can be used. I have a
possible application, but need to know how/when/where these two operators
can be used.

Any help would be appreciated.

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2
David,

If your question is one of syntax, I believe you will be safe in using
standard paragraph () separations, placing your "and" and "or" operators in
between, without the quotation marks.

Randy Speed
President and CEO
Speed Consulting, LLC
Waxahachie, TX 75165
(972) 938-0490 ph (972) 937-2319 fax
www.speedconsulting.com
All,

The logical following logical operators are used in Pro/E relations:

math operators: + - * / ^ ( ) =
functions: ln(), log(), abs(), ceil(), floor(), sqrt()
trig functions: sin(), cos(), tan(), asin(), acos(), atan(), sinh(),
cosh(), tanh() Note: The trig functions are always in degrees
logical comparison: & (and), | (or), ! (not)
logical equality: ==
inequalities: != (not equal), < (greater than), > (less than), <=
(greater than or equal), >= (less than or equal)

I think the operators would be the same for mechanism expressions.

Best regards,

Matthew

Announcements
Attention: Creo 7.0 Customers