How does cond and switch statement makes a difference ? Can we use switch similar to cond operator when it comes to multiple conditions in single condition?
Yes you can use, but if we have more conditions we need to prefer Switch rather than COND. The reason is same we need to prefer CASE rather than IF, if we have more conditions.
Hi Sir, what if the case conditions are different? Like instead of passing a value into same variable, if the logic is different for each case. How to approach it?
your videos are very helpful sir,the way of sharing your knowledge is awsome sir.hats off for you
Thank you very much Amrendra.
👌
Excellent sir tq
How does cond and switch statement makes a difference ? Can we use switch similar to cond operator when it comes to multiple conditions in single condition?
Yes you can use, but if we have more conditions we need to prefer Switch rather than COND. The reason is same we need to prefer CASE rather than IF, if we have more conditions.
Hi Sir, what if the case conditions are different? Like instead of passing a value into same variable, if the logic is different for each case. How to approach it?
We can take a field-symbol of generic data type(ANY) and assign the different results to one common field-symbol.