Similar questions haven't justified my actual question. I have a If condition where if it satisfies 2 conditions it should set value as A else B. Below is the code block describing my question
if(($form[0].lang.value==SPN||PTB||GRM) && ("1" == "<awi:script script='IsTranslationON'/>"))
{
$form[0].$rtag.value = "Test"+$form[0].lang.value+"_"+$form[1].take1.value+"_SUPPORT_Translation";
}
else
{$form[0].$rtag.value = "Test"+$form[0].lang.value+"_"+$form[1].take1.value+"_SUPPORT";}
//Submit form
submit=false;
if(submit){$form[0].submit()}else{alert($form[0].$rtag.value)}
Issue is - evrytime it gets deiplayed only statement from If condition. It is not checking value with $lang.value
Does any of the mates help me checking my if condition please.
EDIT- The value I am getting in alert box is "Test_IND_GENERAL_SUPPORT_Translation".
"1" == "<awi:script ...? what is it for a language?