Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK 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
Oct 2, 2006
80
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
 
Replies continue below

Recommended for you

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