on 03-12-2019 2:05 AM
function test(Par) {
if (Par !== null && Par !== undefined && Par !== "null" && Par !== "") {
uError("STOP_DISPATCHER is null or empty");
} else if (Par === 0 || Par === "0") {
return "Up and running";
} else {
return Par;
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
Your source tab says that you always will get an actual number of status or null value.
And in script you're trying to get property of that number. But Par is already is a number, that you require, you don't need additionally get property, which will never exist in this context.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Artem,
Since I am beginning my programming skills, I was not aware of how values are passed.
I removed get property, and got the value.
Regards
Plaban
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.