請問有選擇"一組條件裡除了某一條件以外的所有條件"的函數嗎?
1 評論
邏輯運算子有NOT、AND、OR、XOR。若想要從好幾個條件裡面排除某個條件,用AND結合NOT即可,例如
if condition1 and condition2 and not condition3 then ret=1;
1 評論