on 09-16-2019 9:26 AM
Hi Guys,
I want to write a case statements in Cloud Analytics. How can I write? Please provide the sample syntax...
Hello,
I hope it helps:
var KG = Dropdown_1.getSelectedKey();
console.log(KG);
switch (KG){
case "1": console.log("CASE 1");
break;
case "2": console.log("CASE 2");
break;
case "3": console.log("CASE 3");
break;
default: console.log("CASE 99");
}
Regards,
Krzysztof
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can achieve similar of CASE statement with IF-ELSE condition.Have you tried with if-else?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.