pdf-icon

UIFlow Guide

UiFlow1 Blockly

Event

Unit

UiFlow1 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
Example
API
Q&A
Submit a question
Select question category*
Arduino
MicroPython
UIFlow1
UIFlow2
EzData
M5Burner
Software
Hardware
Other
Product name
Product version
Question description*
(Supports pasting screenshots.)
Attachments
Add Files
Email*
Submit
OK

M5Stack Support

Hi, this is M5Stack Support. How can I help you today?