Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

NX expression

Status
Not open for further replies.

Jarousz

Automotive
Joined
Jul 17, 2014
Messages
18
Location
GB
Hi everybody,

I am trying to find NX expression for this situation:

If parametr_62=0 and parametr_65=0 then return 0, else return 1.

IF(p62=0)(0)else(1) ... works
IF(0=p65)(0)else(1) ... works
IF(p62=p65=0)(0)else(1) ... doesnt works (but is excepted)

Do you have any experince with this ???
Could you help me ?

Thanx

Jara
 
try instead:
IF(p62=0 AND p65=0)(0)else(1)

----
kukelyk
 
I have tried something like this:
IF(p7=200)(IF(p8=200)(200)else(100))else(100)

This means, that:
when p7 dimension is 200, next IF statemnet is checked. Next statement says, that if p8 dimension is also 200, the third dimension will also be 200. If this second dimension (p8) is not 200, the third dimension is going to be 100.
when p7 dimension is anything else but 200, next IF statement is not relevant. The third dimension is automatically 100.

Hope that this will help.
 
Instead of AND in kukelyk example, write down &. So, that expression would like like this:
IF(p62=0 & p65=0)(0)else(1)
Then it will work as you would like.
 
Hi again,
thank you for the answers!

2Kukelyk: AND doesn´t work
2SvenBom: yy, that is OK!

IF(p62>0)(1)ELSE(IF(p65>0)(1)ELSE(0))

and funny is this:
IF(p62+P65=0)(0)else(1)

Take care

Jara
 
What's so funny about 'IF(p62+P65=0)(0)else(1)'? It's actually pretty elegant to say nothing of being very creative.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Exactly !!!
I have totally omitted so simple solution :-)
Jara
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top