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.
Hii rahul i have one doubt suppose if we declare LV_month as a variable with some type then what is the use of CHAR20 .is this CHAR20 and LV_MONTH related.
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.
hello sir I have one doubt regarding COND STATEMENT While specifing COND '#' whats the use of this symbol??
Hello Surya - Once you move on to next video. You will get the detailed understanding of #.
👌
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.
Hii rahul i have one doubt suppose if we declare LV_month as a variable with some type then what is the use of CHAR20 .is this CHAR20 and LV_MONTH related.
Hello Chitransh - just refer to the next video. You will get the answer of the same.
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.