Recommended Syntax Alignment
This section lists several recommendations for properly aligning syntax when writing rules in the Free Form editor.
The SRL code example below illustrates each of the following points.
if
andthen
statements: Place on separate lines.This practice helps to ensure that the rule always has one
if
statement for eachthen
statement.- Nested conditions: Indent for better readability.
or
andand
statements: Indent each statement and place on separate lines.- Parentheses
()
and brackets{}
: Place on separate lines.This practice helps to ensure that for every open parenthesis or bracket, there is a corresponding close parenthesis or bracket.
if
(CRTRAN25.authPostFlag = "A")
then
{
if
(ffmFrdCard.Score = 900
and
CRTRAN25.cardPaymentHistory = "K")
then
{TriggerCase(ACCOUNT);}
}