Logic Function HELP!!
-
I'm trying to do a logical function but with NO luck, and after help.
Trying to get this!
If a dimension (lenZ) of the component is greater than 300 then return 360,
if it is less than 300 but greater than 270 then return 300,
if it is less than 270 but greater than 240 then return 270,
if it is less than 240 then return 240!!!!The old bloke just aint getting this stuff!
-
if using in the context of lenz attribute and assuming using cm, then value compare current("lenz")*2.54
lenz = if(current("lenz")*2.54<=240,240,if(current("lenz")*2.54<=270,270,if(current("lenz")*2.54<=300,300,360)))
if calculating a nearest_size attribute without forcing the lenz to snap to the result, then use
size = if(lenz<=240,240,if(lenz<=270,270,if(lenz<=300,300,360)))
-
@pcmoor said:
if using in the context of lenz attribute and assuming using cm, then value compare current("lenz")*2.54
lenz = if(current("lenz")*2.54<=240,240,if(current("lenz")*2.54<=270,270,if(current("lenz")*2.54<=300,300,360)))
if calculating a nearest_size attribute without forcing the lenz to snap to the result, then use
size = if(lenz<=240,240,if(lenz<=270,270,if(lenz<=300,300,360)))
Sometimes, I think I'm smart, and then someone proves to me I'm not so!
Sorry about the delayed response mate, I just got to try that and bang, works a treat!!!!!!!!
You are a modern day superhero!!!!!!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement