on 04-16-2013 7:31 PM
What shortcut can I use to write the following code shorter? There must be a way.
if @formula1 = A and @formula2 = A and @formula3 = A and @formula4 = A and @formula5 = A
The only way to "shorten" this statement would be to create a separate formula for each condition. For example:
@fomula1 = A
{@Check2}
@formula2 = A
etc.
This would change the "if" statement to something like:
If {@Check1} and {@Check2} and {@Check3}...
Other than that, there is no "shorthand" coding for this type of statement.
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
stringvar check_value:=@formula1 & @formula2 & @formula3 & @formula4 & @formula5;
if check_value="AAAAA" then true else false
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aaron,
I think you asked a similar question sometime ago and Dell and I had replied back then. See if the same suggestion works:
http://scn.sap.com/message/13862523
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
61 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.