
Hello, me again! Spurred on by the previous help, I am now looking at ways to set an attribute value if two variables are above a certain number. For example, both "value_pr_1" and "value_pr_2" need to be 16 or higher in order to set "10" in the attribute "ExpPercentage". I have tried many different ways and just can't get it to work (might be the lateness of the hour ...). If a kind soul could push me in the right direction, it would be greatly appreciated. Thanks! } else if (["class"].indexOf( values.class.toLowerCase()) >= 0) { var value_pr_1 = parseInt(values["final_con"])||0; var value_pr_2 = parseInt(values["final_str"])||0; if(value_pr_1 > 15, value_pr_2 > 15 ) { setAttrs({ ExpPercentage: "10" }); } else if(value_pr_1 > 12 ) { setAttrs({ ExpPercentage: "5" }); } else if(value_pr_2 > 12 ) { setAttrs({ ExpPercentage: "5" }); } else { setAttrs({ ExpPercentage: "0" }); } }