Skip to main content
1-Visitor
November 12, 2010
Question

How do i write relation

  • November 12, 2010
  • 1 reply
  • 2983 views

Hi all,

i am trying to figure out (without success) how to write a relation. I want to control a diameter when another diameter is a given value. For example, if diameter A = 100 then diameter B = 120. I thought the following would work, but it does not, i get error in relations.

IF A=100

THEN B =120

ENDIF

Regards

John

    1 reply

    17-Peridot
    November 12, 2010

    Hi John,

    try this one:

    if (A==100)

    B=120

    else

    B=100

    endif

    Regards

    Oli

    1-Visitor
    November 12, 2010

    Hi Oliver,

    thank you for the reply, that worked, sort of. I actually want to add more than one relation, so when A=100, B=120, but i also want when A=110, B=120 & A=120, B=130.

    These are not the actual values i require, i have used them for simplicity, the actual figures do increase by 10 each time, they are more random.

    Regards

    John

    1-Visitor
    November 12, 2010

    Ok, i figured it out. I dropped the last 2 lines, ELSE & B=100. Now things are working in exactly the way i wanted. Thank you for pointing me in the right direction Oliver.

    Kind Regards

    John