Sharing Info: String Compare in Planning - @CalcMgrCompare function
Summary
Execute a set of statements based on the Variable/Prompt Value (String Compare)Content
Hi All
I found something interesting and want to share with all of you.
We have a requirement in Planning to execute a set of statements based on the current month Variable/Prompt Value.
Using Calc Manager function “@CalcMgrCompare”, we can compare two strings.
Below is the sample code:
====================================================================
IF(@CalcMgrCompare(@NAME(&Var_Curr_Mnth)), @NAME("Jan"), @_true))
<Statement1>;
ELSE
<Statement2>;
ENDIF
====================================================================
Version
EPBCS - LatestCode Snippet
IF(@CalcMgrCompare(@NAME(&Var_Curr_Mnth)), @NAME("Jan"), @_true)) <Statement1>; ELSE <Statement2>; ENDIF
Tagged:
5