PDA

Vollständige Version anzeigen : finding a maximum value of three variables


Mirta Galesic
20.05.2009, 20:22
Hello again,

In my project (ID=181068) I would like to find a maximum of three variables (c_0205, c_0206, c_0207) and then use this value as a condition in a recoding trigger (trigger name is o_max, page Trigger3).

How can I do that? I tried specifying that e.g. c_0205 should be > than both #c_0206# and #c_0207#, and tried the 'matches regex' option, but no success.

Thank you,
Mirta

Christian Kamp
22.05.2009, 11:14
Hallo

Hello again,

In my project (ID=181068) I would like to find a maximum of three variables (c_0205, c_0206, c_0207) and then use this value as a condition in a recoding trigger (trigger name is o_max, page Trigger3).

How can I do that? I tried specifying that e.g. c_0205 should be > than both #c_0206# and #c_0207#, and tried the 'matches regex' option, but no success.

Thank you,
Mirta

Create recoding trigger that has the following conditions:

1. (c_0205 > c_0207) and (c_0205 > v_0206)
2. (c_0206 > c_0207) and (c_0206 > v_0205)
3. (c_0207 > c_0206) and (c_0207 > v_0205)

This way you can write the max value in a c_ variable. This c_ variable can then be used in the condition of another trigger.

Regards

--
Christine Wiebalck
campus@unipark.de