I took a lot of data from and prepared in in 6 streams. I Joined the data on [Building] but not all the steams had all the same buildings so some columns have nulls. I wanted to create a new column that would take the building name from one of those 6 columns generated by the Join tool . I tried a couple different conditional If statements but I wasn't successful. Any help would be appreciated.
The is a malformed statement at character 194
IF IsNull([Building]) THEN (IF IsNull([Input_#2_Building]) THEN (IF IsNull([Input_#3_Building]) THEN (IF IsNull([Input_#4_Building]) THEN (IF IsNull([Input_#5_Building]) THEN [Input_#6_Building])))) ENDIF
This one didn't work, left nulls
IF IsNull([Building]) THEN [Input_#2_Building] ELSEIF
IsNull([Input_#2_Building]) THEN [Input_#3_Building] ELSEIF
IsNull([Input_#3_Building]) THEN [Input_#4_Building] ELSEIF
IsNull([Input_#4_Building]) THEN [Input_#4_Building] ELSEIF
IsNull([Input_#5_Building]) THEN 0 ELSE 0 ENDIF
thank you.