condition1= A cross over B ;
condition2= A1 > B1 ;
if condition1 and condition2 then ret=1 ;
==================================
condition1=false;
condition2=false;
if A cross over B then condition1=true;
if A1 > B1 then condition2=true;
if condition1 and condition2 then ret=1 ;
====================================
請問這兩種寫法,在執行上有什麼不同嗎? 謝謝!
8 評論