So I changed it to:
if ((V1-TOC) > -100);
{
if (OrdDtl["BelowMarginApproved_c"] == false)
{ bFailedGM=true;
//bOrderFailed=true;
InfoMessage.Publish("BelowMargin: " + OrdDtl.BelowMargin_c + "OrderHold: " + OrdHed.OrderHeld, Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual);
OrdHed.OrderHeld=true; //bOrderFailed;
OrdDtl["BelowMargin_c"] = true;
InfoMessage.Publish("BelowMargin: " + OrdDtl.BelowMargin_c + "OrderHold: " + OrdHed.OrderHeld, Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual);
}
else {
OrdHed.OrderHeld=false;
InfoMessage.Publish("Not Below Margin", Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual);
}
}
But I am getting a different error:
System.Drawing.Bitmap CS0019 Operator ‘==’ cannot be applied to operands of type ‘object’ and ‘bool’