I’m going cross-eyed with this, probably because it’s late in the day.
I’m executing custom code in a BPM and I am controlling the execution of the rest of the code from a field value returned from a query.
QuoteHed = (from QuoteHed_row in Db.QuoteHed
where QuoteHed_row.Company == Session.CompanyID
&& QuoteHed_row.QuoteNum == ttQuoteDtl_row.QuoteNum
select QuoteHed_row).FirstOrDefault();
bool contra = Convert.ToBoolean(QuoteHed.CheckBox02.ToString());
if(contra)
{
//execute if true
}
My code within the if statement executes regardless of the value of the variable. Am I referenceing the boolean value of QuoteHed.CheckBox02 correctly?