{
kind: "category",
name: "Operators",
categorystyle: "operators_category",
contents: [
{
kind: "block",
type: "math_number",
fields: {NUM: 123},
},
{type: "text", kind: "block", fields: {TEXT: ""}},
{
kind: "block",
type: "math_arithmetic",
fields: {OP: "ADD"},
inputs: {
A: {
shadow: {
type: "math_number",
fields: {NUM: 1},
},
},
B: {
shadow: {
type: "math_number",
fields: {NUM: 1},
},
},
},
},
{
kind: "block",
type: "math_random_int",
inputs: {
FROM: {
shadow: {
type: "math_number",
fields: {NUM: 1},
},
},
TO: {
shadow: {
type: "math_number",
fields: {NUM: 100},
},
},
},
},
{kind: "block", type: "logic_compare", fields: {OP: "EQ"}},
{kind: "block", type: "logic_operation", fields: {OP: "AND"}},
{kind: "block", type: "logic_negate"},
{kind: "block", type: "logic_boolean", fields: {BOOL: "TRUE"}},
{kind: "block", type: "logic_ternary"},
{kind: "block", type: "string_sum"},
{
kind: "block",
type: "text_append",
fields: {name: "item"},
inputs: {
TEXT: {
shadow: {
type: "text",
fields: {TEXT: ""},
},
},
},
},
{
kind: "block",
type: "text_charAt",
fields: {WHERE: "FROM_START"},
inputs: {
VALUE: {
block: {
type: "variables_get",
fields: {VAR: {name: "text"}},
},
},
},
},
{
kind: "block",
type: "text_length",
inputs: {
VALUE: {
shadow: {
type: "text",
fields: {TEXT: "abc"},
},
},
},
},
{
kind: "block",
type: "text_indexOf",
fields: {END: "FIRST"},
inputs: {
VALUE: {
block: {
type: "variables_get",
fields: {VAR: {name: "text"}},
},
},
FIND: {
shadow: {
type: "text",
fields: {TEXT: "abc"},
},
},
},
},
{
kind: "block",
type: "math_round",
fields: {OP: "ROUND"},
inputs: {
NUM: {
shadow: {
type: "math_number",
fields: {NUM: 3.1},
},
},
},
},
{
kind: "block",
type: "math_single",
fields: {OP: "ABS"},
inputs: {
NUM: {