私はこのコードを持っていますが、演算子 || を使用できない理由がわかりません。この例では。
"演算子 '||' タイプ 'bool' および 'int' のオペランドには適用できません"
何か不足していますか?このブール値はどこにありますか?
int i = 1;
if ( i == 1)
{
Response.Write("-3");
}
else if (i == 5 || 3) //this is the error, but where is the bool?
{
Response.Write("-2");
}