Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Truely Illogical!

Status
Not open for further replies.

man2007

Aerospace
Nov 6, 2007
283
A boolean expression like i==20 should either result in either 0 or 1, right?

Then an expression like
j=i==20 (where i and j are constants)
should be a valid expression, but expression editor gives
"datatype error
Boolean was found where Number was expected"

And moreover the above way of writing expression is more compact than
j=if(i==20)(1)else(0)

ug version used NX4.0.4.2
 
Replies continue below

Recommended for you

Expression support for Booleans has been added in NX 6.0, however rather than returning 1 or 0, it will return True or False as a result.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Cypress, CA

To an Engineer, the glass is twice as big as it needs to be.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor