If statments with the use of Assignments

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • If statments with the use of Assignments

    Morning all,

    Is it possible to use an if statement in an assignment calculation, for example.....

    If measured dimension is over 10mm then use assignment 1 (v1)
    if measured dimension is under 10mm then use assignment 2 (v2)

    assignment 1 and 2 being mathematical equations. for example

    v1=loc1.meas x 5
    v2=loc1.meas x 10

    Thanks in advance.

  • #2
    Assign/v1=if(loc2.m.meas<10,888,999)

    If the statement is true, it will assign the first value, if not, the second.

    Comment


    • Schrocknroll
      Schrocknroll commented
      Editing a comment
      I hate to tell you this, but your not living up to your name. That was actually quite helpful.

    • RandomJerk
      RandomJerk commented
      Editing a comment
      Schrocknroll - it's more a reference to the attitude/demeanor than the content.


      Thanks.

  • #3
    Great, thanks

    Comment

    Related Topics

    Collapse

    Working...
    X