pdf-icon

UIFlow Guide

UIFlow 1.0 Blockly

Event

Unit

Atomic Base

UIFlow 1.0 Project

variables

Example

Create variable

from m5stack import *
from m5ui import *
from uiflow import *

date = None

from numbers import Number

date = 10
date = (date if isinstance(date, Number) else 0) + (0 + 1)
print(date)

API

date = 10
  • Assign values to variables
date = (date if isinstance(date, Number) else 0) + (0 + 1)
  • Modify the current variable, the input parameter is the modified size (e.g. +10, -10), can be an expression. If the variable value is not of type number, the result of the input parameter is assigned to the current variable.
  • Perform value assignment
On This Page