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 cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Something wrong with formula

Status
Not open for further replies.

Santa123

Mechanical
Joined
Oct 2, 2006
Messages
80
Location
PL
Hellow,

What is wrong with this formula ?

if "thickness g" == 3mm {chamfer=5mm}
else if "thickness g" == 4mm or "thickness g" == 5mm {chamfer = 1mm}
else if "thickness g" >= 6mm or "thickness g" <=8mm {chamfer = 1,5mm}

Bad kind of argument number 2 in Operator ==
(should be Enumere Insted of Length

Respect
Amnon
 
Amnon,

Lots.

1. Do not use quotation marks around the string variable
2. Do not use commas for periods. (assume you are using Spanish keyboard or other)

Anyway this will fix problem just cut and paste into the rule

if `thickness g` == 3mm
{
chamfer=5mm
}
else if `thickness g` ==4mm or `thickness g` == 5mm
{
chamfer = 1mm
}
else if `thickness g` >= 6mm or `thickness g` <=8mm
{
chamfer = 1.5mm
}

Regards

Nev
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top