UIFlow Guide
逻辑处理函数使用
from m5stack import *
from m5ui import *
from uiflow import *
date = None
boolean = None
oldData1 = None
date = 5
if date < 10:
date = date + 1
if date != 10:
date = date + 1
else:
date = date - 1
boolean = date <= 6
date = 0 if date <= 6 else 2
try :
boolean = True and False
pass
except:
boolean = not date == 0
if date==6:
date = date + 1
elif date==7:
date = date + 2
else:
date = date - 1
if date != oldData1:
oldData1 = date
date = date + 1
else:
date = date - 1
pass
if date < 10:
date = date + 1
if date != 10:
date = date + 1
else:
date = date - 1
date = 0 if date <= 6 else 2
boolean = date <= 6
boolean = not date == 0
null
if date==6:
date = date + 1
elif date==7:
date = date + 2
else:
date = date - 1
try :
boolean = True and False
pass
except:
boolean = not date == 0
boolean = True and False
and
当左右两个逻辑关系式 有一个成立
时,逻辑运算的结果为 True,否则为 Falseor
当左右两个逻辑关系式 都成立 时,逻辑运算的结果才为 True,否则为 Falseif date != oldData1:
oldData1 = date
date = date + 1
else:
date = date - 1
pass