bool Emulate_Brtrue() { var val1 = instructionEmulator.Pop(); if (val1.IsInt32()) { return(EmulateBranch(1, Int32Value.CompareTrue((Int32Value)val1))); } else if (val1.IsInt64()) { return(EmulateBranch(1, Int64Value.CompareTrue((Int64Value)val1))); } else if (val1.IsReal8()) { return(EmulateBranch(1, Real8Value.CompareTrue((Real8Value)val1))); } else if (val1.IsNull()) { return(EmulateBranch(1, false)); } else if (val1.IsObject() || val1.IsString()) { return(EmulateBranch(1, true)); } else { return(false); } }