1var condition = false;
2var result1 = "First result";
3var result2 = "Second result";
4var result = condition ? result1 : result2;
5//result1 will be assigned to result if condition is true.6//If not, result2 will be assigned
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content