16.12.2016, 14:58
Please post in English next time
The task is to show a specific plan depending on a certain object value.
The task is to show a specific plan depending on a certain object value.
Code:
$(function(){
if (typeof grp != 'undefined') {
grp.listen('1/1/1', function(object, state) {
var value = object.value;
if (state == 'value') {
if (value == 1) {
showPlan(11);
}
else if (value == 2) {
showPlan(12);
}
else if (value == 3) {
showPlan(13);
}
}
});
}
});