Skip to content

Instantly share code, notes, and snippets.

@lofcz
Created January 3, 2021 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lofcz/b8f3941fa8351b9b32c3fe0715210b68 to your computer and use it in GitHub Desktop.
Save lofcz/b8f3941fa8351b9b32c3fe0715210b68 to your computer and use it in GitHub Desktop.
{
data: {
i: 0,
limit: 10
},
functions: [
{
name: "whileHandler",
script: [
{
actions: [
{
type: A_NOTIFICATION,
notification: N_INFO,
text: "Iterace: {i} / {limit}"
},
{
type: A_VARIABLE,
variable: "i",
operation: "+=",
value: 1
}
]
}
]
}
],
options: [
{
name: "Spustit",
actions: [
{
actions: [
{
type: A_KERNEL,
kernel: K_WHILE,
script: {
name: "whileHandler"
},
conditionsAll: [
{
left: "i",
right: "limit",
compare: "<"
}
]
},
{
type: A_VARIABLE,
variable: "i",
value: 0,
operation: "="
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment