{
  "version": "1.0",
  "timestamp": "2025-12-26T12:04:22.998Z",
  "objects": [
    {
      "name": "card",
      "id": "card",
      "position": {
        "left": "",
        "top": "",
        "width": "",
        "height": ""
      },
      "script": "on opencard\n   set the gridsize to 20\nend opencard",
      "properties": {}
    },
    {
      "name": "numeric word constants",
      "id": "1",
      "type": "button",
      "position": {
        "left": "40px",
        "top": "40px",
        "width": "320px",
        "height": "20px"
      },
      "script": "on mousedown\n   -- numeric word constants\n   clear message box\n   put five into x\n   put ten + five  -- evaluates to 15\n   repeat twenty times\n      -- do something\n      add 1 to x\n   end repeat\n   put x -- would equate to 25\n   put three * seven  -- evaluates to 21\nend mousedown",
      "properties": {
        "visible": true,
        "hilighted": false,
        "isCheckbox": false,
        "isMenu": false,
        "menuText": "",
        "disabled": false,
        "textAlign": "center",
        "textsize": 16,
        "textColor": "#000",
        "textFont": "inherit",
        "textStyle": "normal",
        "asBackground": false,
        "label": "",
        "layer": "2",
        "foregroundColor": "rgb(255, 255, 255)",
        "foregroundcolor": "white",
        "fontFamily": "inherit",
        "rotation": 0,
        "backgroundcolor": "rgb(47, 51, 53)",
        "bordercolor": "rgb(108, 100, 89)",
        "borderwidth": "1",
        "fontweight": "400",
        "clickText": "constants",
        "clicktext": "constants",
        "backgroundColor": "rgb(47, 51, 53)",
        "borderColor": "rgb(108, 100, 89)",
        "borderWidth": "1px",
        "fontWeight": "400"
      }
    },
    {
      "name": "the value()",
      "id": "2",
      "type": "button",
      "position": {
        "left": "260px",
        "top": "100px",
        "width": "160px",
        "height": "20px"
      },
      "script": "on mousedown\n   clear message box\n   put \"5 + 3\" into tExpr\n   put value(tExpr)  -- returns 8\n   put value(\"10 * 2\")  -- returns 20\nend mousedown",
      "properties": {
        "visible": true,
        "hilighted": false,
        "isCheckbox": false,
        "isMenu": false,
        "menuText": "",
        "disabled": false,
        "textAlign": "center",
        "textsize": 16,
        "textColor": "#000",
        "textFont": "inherit",
        "textStyle": "normal",
        "asBackground": false,
        "label": "",
        "layer": "4",
        "foregroundColor": "rgb(255, 255, 255)",
        "foregroundcolor": "white",
        "fontFamily": "inherit",
        "rotation": 0,
        "backgroundcolor": "rgb(47, 51, 53)",
        "bordercolor": "rgb(108, 100, 89)",
        "borderwidth": "1",
        "fontweight": "400",
        "clickText": "value()",
        "clicktext": "value()",
        "backgroundColor": "rgb(47, 51, 53)",
        "borderColor": "rgb(108, 100, 89)",
        "borderWidth": "1px",
        "fontWeight": "400"
      }
    },
    {
      "name": "value, 2nd test",
      "id": "3",
      "type": "button",
      "position": {
        "left": "40px",
        "top": "100px",
        "width": "150px",
        "height": "30px"
      },
      "script": "on mousedown\n   clear message box\n   put the value of 45 + 12 -- 57\n   put the value of (5 * 3) + 2 -- 17\n   put the value of (5 * (3 + 2)) -- 25\n   put value(\"10 * 2\") -- 20\n   put \"5 + 3\" into tExpr\n   put value(tExpr) -- 8\nend mousedown",
      "properties": {
        "visible": true,
        "hilighted": false,
        "isCheckbox": false,
        "isMenu": false,
        "menuText": "",
        "disabled": false,
        "textAlign": "center",
        "textsize": 16,
        "textColor": "#000",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "asBackground": false,
        "label": "",
        "layer": "4",
        "foregroundColor": "rgb(255, 255, 255)",
        "foregroundcolor": "white",
        "fontFamily": "",
        "rotation": 0,
        "blendLevel": "0",
        "backgroundcolor": "rgb(47, 51, 53)",
        "bordercolor": "rgb(108, 100, 89)",
        "borderwidth": "1",
        "fontweight": "400",
        "clickText": "test",
        "clicktext": "test",
        "backgroundColor": "rgb(47, 51, 53)",
        "borderColor": "rgb(108, 100, 89)",
        "borderWidth": "1px",
        "fontWeight": "400"
      }
    },
    {
      "name": "put arrays",
      "id": "4",
      "type": "button",
      "position": {
        "left": "40px",
        "top": "320px",
        "width": "220px",
        "height": "20px"
      },
      "script": "on mousedown\n   clear message box\n   put \"cat,dog,snake,chicken,elderly people\" into tWords\n   split tWords by \",\"\n   put tWords[1]  -- outputs: cat\n   put tWords[2]  -- outputs: dog\nend mousedown",
      "properties": {
        "visible": true,
        "hilighted": false,
        "isCheckbox": false,
        "isMenu": false,
        "menuText": "",
        "disabled": false,
        "textAlign": "center",
        "textsize": 16,
        "textColor": "#000",
        "textFont": "inherit",
        "textStyle": "normal",
        "asBackground": false,
        "label": "",
        "layer": "6",
        "foregroundColor": "rgb(255, 255, 255)",
        "foregroundcolor": "white",
        "fontFamily": "inherit",
        "rotation": 0,
        "backgroundcolor": "rgb(47, 51, 53)",
        "bordercolor": "rgb(108, 100, 89)",
        "borderwidth": "1",
        "fontweight": "400",
        "clickText": "arrays",
        "clicktext": "arrays",
        "backgroundColor": "rgb(47, 51, 53)",
        "borderColor": "rgb(108, 100, 89)",
        "borderWidth": "1px",
        "fontWeight": "400"
      }
    },
    {
      "name": "array key split",
      "id": "5",
      "type": "button",
      "position": {
        "left": "40px",
        "top": "280px",
        "width": "220px",
        "height": "20px"
      },
      "script": "on mousedown\n   clear message box\n   put \"name:Tom,age:46,country:England\" into tData\n   split tData by \",\" and \":\"\n   put tData[\"name\"]  -- outputs: Tom\n   put tData[\"age\"]   -- outputs: 46\nend mousedown",
      "properties": {
        "visible": true,
        "hilighted": false,
        "isCheckbox": false,
        "isMenu": false,
        "menuText": "",
        "disabled": false,
        "textAlign": "center",
        "textsize": 16,
        "textColor": "#000",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "asBackground": false,
        "label": "",
        "layer": "6",
        "foregroundColor": "rgb(255, 255, 255)",
        "foregroundcolor": "white",
        "fontFamily": "",
        "rotation": 0,
        "blendLevel": "0",
        "backgroundcolor": "rgb(47, 51, 53)",
        "bordercolor": "rgb(108, 100, 89)",
        "borderwidth": "1",
        "fontweight": "400",
        "clickText": "key",
        "clicktext": "key",
        "backgroundColor": "rgb(47, 51, 53)",
        "borderColor": "rgb(108, 100, 89)",
        "borderWidth": "1px",
        "fontWeight": "400"
      }
    },
    {
      "name": "combine array",
      "id": "6",
      "type": "button",
      "position": {
        "left": "40px",
        "top": "360px",
        "width": "220px",
        "height": "20px"
      },
      "script": "on mousedown\n   clear message box\n   put \"red\" into tColors[1]\n   put \"green\" into tColors[2]\n   put \"blue\" into tColors[3]\n   combine tColors with \",\"\n   put tColors  -- outputs: red,green,blue\nend mousedown",
      "properties": {
        "visible": true,
        "hilighted": false,
        "isCheckbox": false,
        "isMenu": false,
        "menuText": "",
        "disabled": false,
        "textAlign": "center",
        "textsize": 16,
        "textColor": "#000",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "asBackground": false,
        "label": "",
        "layer": "6",
        "foregroundColor": "rgb(255, 255, 255)",
        "foregroundcolor": "white",
        "fontFamily": "",
        "rotation": 0,
        "blendLevel": "0",
        "backgroundcolor": "rgb(47, 51, 53)",
        "bordercolor": "rgb(108, 100, 89)",
        "borderwidth": "1",
        "fontweight": "400",
        "clickText": "array",
        "clicktext": "array",
        "backgroundColor": "rgb(47, 51, 53)",
        "borderColor": "rgb(108, 100, 89)",
        "borderWidth": "1px",
        "fontWeight": "400"
      }
    },
    {
      "name": "key value combine",
      "id": "7",
      "type": "button",
      "position": {
        "left": "40px",
        "top": "200px",
        "width": "220px",
        "height": "20px"
      },
      "script": "on mousedown\n   clear message box\n   put \"Tom\" into tPerson[\"name\"]\n   put \"46\" into tPerson[\"age\"]\n   combine tPerson with \",\" and \":\"\n   put tPerson  -- outputs: name:Tom,age:46\nend mousedown",
      "properties": {
        "visible": true,
        "hilighted": false,
        "isCheckbox": false,
        "isMenu": false,
        "menuText": "",
        "disabled": false,
        "textAlign": "center",
        "textsize": 16,
        "textColor": "#000",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "asBackground": false,
        "label": "",
        "layer": "6",
        "foregroundColor": "rgb(255, 255, 255)",
        "foregroundcolor": "white",
        "fontFamily": "",
        "rotation": 0,
        "blendLevel": "0",
        "backgroundcolor": "rgb(47, 51, 53)",
        "bordercolor": "rgb(108, 100, 89)",
        "borderwidth": "1",
        "fontweight": "400",
        "clickText": "value",
        "clicktext": "value",
        "backgroundColor": "rgb(47, 51, 53)",
        "borderColor": "rgb(108, 100, 89)",
        "borderWidth": "1px",
        "fontWeight": "400"
      }
    },
    {
      "name": "round-trip array sanity test",
      "id": "8",
      "type": "button",
      "position": {
        "left": "40px",
        "top": "240px",
        "width": "220px",
        "height": "20px"
      },
      "script": "on mousedown\n   clear message box\n   put \"a:1,b:2,c:3\" into tData\n   split tData by \",\" and \":\"\n   put \"99\" into tData[\"b\"]\n   combine tData with \",\" and \":\"\n   put tData  -- outputs: a:1,b:99,c:3\nend mousedown",
      "properties": {
        "visible": true,
        "hilighted": false,
        "isCheckbox": false,
        "isMenu": false,
        "menuText": "",
        "disabled": false,
        "textAlign": "center",
        "textsize": 16,
        "textColor": "#000",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "textStyle": "normal",
        "asBackground": false,
        "label": "",
        "layer": "6",
        "foregroundColor": "rgb(255, 255, 255)",
        "foregroundcolor": "white",
        "fontFamily": "",
        "rotation": 0,
        "blendLevel": "0",
        "backgroundcolor": "rgb(47, 51, 53)",
        "bordercolor": "rgb(108, 100, 89)",
        "borderwidth": "1",
        "fontweight": "400",
        "clickText": "sanity",
        "clicktext": "sanity",
        "backgroundColor": "rgb(47, 51, 53)",
        "borderColor": "rgb(108, 100, 89)",
        "borderWidth": "1px",
        "fontWeight": "400"
      }
    },
    {
      "name": "New field 1",
      "id": "9",
      "type": "field",
      "position": {
        "left": "40px",
        "top": "160px",
        "width": "180px",
        "height": "40px"
      },
      "script": "",
      "properties": {
        "visible": "true",
        "asBackground": false,
        "rotation": 0,
        "layer": "1",
        "textalign": "left",
        "scrollable": true,
        "locktext": true,
        "multiline": false,
        "autotab": false,
        "widemargins": false,
        "sharedtext": false,
        "dontwrap": false,
        "textsize": 16,
        "vScroll": 0,
        "hScroll": 0,
        "visibleLines": "1",
        "isIframe": false,
        "styledtext": true,
        "visiblelines": "1",
        "showborder": false,
        "clickline": "1",
        "textStyle": "normal",
        "foregroundColor": "rgb(137, 137, 137)",
        "foregroundcolor": "137,137,137",
        "backgroundcolor": "rgba(0, 0, 0, 0)",
        "bordercolor": "rgb(107, 99, 88)",
        "borderwidth": "0",
        "textFont": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "fontFamily": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
        "fontweight": "700",
        "backgroundColor": "rgba(0, 0, 0, 0)",
        "borderColor": "rgb(107, 99, 88)",
        "borderWidth": "0px",
        "textAlign": "left",
        "fontWeight": "700"
      },
      "content": "arrays:",
      "formattingCommands": [
        "set the textsize of field \"New field 1\" to 16",
        "set the textstyle of field \"New field 1\" to Bold",
        "set the textcolor of field \"New field 1\" to 137,137,137"
      ]
    }
  ]
}