pxt-calliope/docs/blocks/variables.md

243 B

Variables

Assign (set) a variable's value

let x = 0;

Get a variable's value

let x = 0;
x;

Change a variable's value

let x = 0;
x+=1;