I need help with the following formula...I have multiple conditions in each if statement but not sure how to write the formula -
if {SO_SalesOrderHeader.UDF_CONSOLIDATED_SHIPMENT} = "N" and {SO_SalesOrderHeader.UDF_ON_TIME_SHIPMENT} = "Y" and {SO_SalesOrderHeader.UDF_SHIP_ASAP} = "N"
then "** ON-TIME SHIPMENT **"
else if {SO_SalesOrderHeader.UDF_CONSOLIDATED_SHIPMENT} = "N" and {SO_SalesOrderHeader.UDF_ON_TIME_SHIPMENT} = "N" or {SO_SalesOrderHeader.UDF_SHIP_ASAP} = "Y"
then "** SHIP ASAP **"
else if {SO_SalesOrderHeader.UDF_CONSOLIDATED_SHIPMENT} = "Y" and {SO_SalesOrderHeader.UDF_ON_TIME_SHIPMENT} = "Y" or {SO_SalesOrderHeader.UDF_SHIP_ASAP} = "N"
then "** ON-TIME SHIPMENT / CONSOLIDATE **"
else if {SO_SalesOrderHeader.UDF_CONSOLIDATED_SHIPMENT} = "Y" and {SO_SalesOrderHeader.UDF_ON_TIME_SHIPMENT} = "N" or {SO_SalesOrderHeader.UDF_SHIP_ASAP} = "Y"
then "** SHIP ASAP / CONSOLIDATE **"
else if {SO_SalesOrderHeader.UDF_CONSOLIDATED_SHIPMENT} = "Y" and {SO_SalesOrderHeader.UDF_ON_TIME_SHIPMENT} = "N" or {SO_SalesOrderHeader.UDF_SHIP_ASAP} = "N"
then "** CONSOLIDATE **"
else "** FIX FORMULA **
if {SO_SalesOrderHeader.UDF_CONSOLIDATED_SHIPMENT} = "N" and {SO_SalesOrderHeader.UDF_ON_TIME_SHIPMENT} = "Y" and {SO_SalesOrderHeader.UDF_SHIP_ASAP} = "N"
then "** ON-TIME SHIPMENT **"
else if {SO_SalesOrderHeader.UDF_CONSOLIDATED_SHIPMENT} = "N" and {SO_SalesOrderHeader.UDF_ON_TIME_SHIPMENT} = "N" or {SO_SalesOrderHeader.UDF_SHIP_ASAP} = "Y"
then "** SHIP ASAP **"
else if {SO_SalesOrderHeader.UDF_CONSOLIDATED_SHIPMENT} = "Y" and {SO_SalesOrderHeader.UDF_ON_TIME_SHIPMENT} = "Y" or {SO_SalesOrderHeader.UDF_SHIP_ASAP} = "N"
then "** ON-TIME SHIPMENT / CONSOLIDATE **"
else if {SO_SalesOrderHeader.UDF_CONSOLIDATED_SHIPMENT} = "Y" and {SO_SalesOrderHeader.UDF_ON_TIME_SHIPMENT} = "N" or {SO_SalesOrderHeader.UDF_SHIP_ASAP} = "Y"
then "** SHIP ASAP / CONSOLIDATE **"
else if {SO_SalesOrderHeader.UDF_CONSOLIDATED_SHIPMENT} = "Y" and {SO_SalesOrderHeader.UDF_ON_TIME_SHIPMENT} = "N" or {SO_SalesOrderHeader.UDF_SHIP_ASAP} = "N"
then "** CONSOLIDATE **"
else "** FIX FORMULA **