篩選條件

  •   3 
  • 最後發表   winton  1小時前
winton 發文於   2026/10/29

請問有選擇"一組條件裡除了某一條件以外的所有條件"的函數嗎?

虎科大許教授 發文於   2026/10/29

邏輯運算子有NOT、AND、OR、XOR。若想要從好幾個條件裡面排除某個條件,用AND結合NOT即可,例如

if condition1 and condition2 and not condition3 then ret=1;

發表回覆
Close