I have 2 nested if else statements and I only get the expected results from the first if statement when I comment out the second if. What am I doing wrong?
If {?@ai_detailed_by} = 1 then
If {r_budget_to_actual_raw_data;1.mdty_name} = "N/A" Then
"Not here1"
Else
"Here1";
If {?@ai_detailed_by} = 2 then
If {r_budget_to_actual_raw_data;1.mdty_name} = "N/A" Then
"Not here2"
Else
"Here2"
If {?@ai_detailed_by} = 1 then
If {r_budget_to_actual_raw_data;1.mdty_name} = "N/A" Then
"Not here1"
Else
"Here1";
If {?@ai_detailed_by} = 2 then
If {r_budget_to_actual_raw_data;1.mdty_name} = "N/A" Then
"Not here2"
Else
"Here2"