Calculate the greater of two values in Rules? I'm trying to set up a rule which sets a CCK field to the greater of two other CCK fields, but calculate a value only has +-*. How do I figure out the greater of two values?
I guess that you can try this to the 'numeric comparison' rule:



here is the lines used with cck fields field_test1 and field_test2:

 &lt;?php $field1 = $form_state['values']['field_test1'][0]['value']; echo $field1; ?&gt;
 &lt;?php $field1 = $form_state['values']['field_test2'][0]['value']; echo $field2; ?&gt;