Hi,
i got 2 variables,
i want launch an action following the differents couple of variables values
Code
//set my variables, i got them from 2 combobox choices :
set(my_var01,'var_01_result_A'); // could be : var_01_result_B or var_01_result_C
set(my_var02,'var_02_result_A'); // could be : var_02_result_B or var_02_result_C
// launch an action following the couple of obtained variables values :
onclick="if(my_var01 == ('var_01_result_A') && my_var02 == ('var_02_result_B'), action(my_action_A); );
if(my_var01 == ('var_01_result_B') && my_var02 == ('var_02_result_A'), action(my_action_B); );" // this is not working
Alles anzeigen
So, what's the best syntax to do that ?
i have different actions for couple of variables values,
Thanks
z