[{"data":1,"prerenderedAt":1230},["ShallowReactive",2],{"navigation_docs_en":3,"-en-interact-triggers-and-variables":162,"-en-interact-triggers-and-variables-surround":1225},[4,26,66,86,117,146],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":25},"Start here","i-lucide-flag","\u002Fen\u002Fstart","en\u002F1.start",[10,15,20],{"title":11,"path":12,"stem":13,"icon":14},"Welcome","\u002Fen\u002Fstart\u002Fwelcome","en\u002F1.start\u002F1.welcome","i-lucide-hand",{"title":16,"path":17,"stem":18,"icon":19},"Your first course","\u002Fen\u002Fstart\u002Ffirst-course","en\u002F1.start\u002F2.first-course","i-lucide-rocket",{"title":21,"path":22,"stem":23,"icon":24},"Editor tour","\u002Fen\u002Fstart\u002Feditor-tour","en\u002F1.start\u002F3.editor-tour","i-lucide-map",false,{"title":27,"icon":28,"path":29,"stem":30,"children":31,"page":25},"Build slides","i-lucide-shapes","\u002Fen\u002Fbuild","en\u002F2.build",[32,37,41,46,51,56,61],{"title":33,"path":34,"stem":35,"icon":36},"Slides, scenes and layouts","\u002Fen\u002Fbuild\u002Fslides-and-scenes","en\u002F2.build\u002F1.slides-and-scenes","i-lucide-presentation",{"title":38,"path":39,"stem":40,"icon":28},"Objects","\u002Fen\u002Fbuild\u002Fobjects","en\u002F2.build\u002F2.objects",{"title":42,"path":43,"stem":44,"icon":45},"Lines and polygons","\u002Fen\u002Fbuild\u002Flines-and-polygons","en\u002F2.build\u002F3.lines-and-polygons","i-lucide-spline",{"title":47,"path":48,"stem":49,"icon":50},"Media","\u002Fen\u002Fbuild\u002Fmedia","en\u002F2.build\u002F4.media","i-lucide-image",{"title":52,"path":53,"stem":54,"icon":55},"Layers","\u002Fen\u002Fbuild\u002Flayers","en\u002F2.build\u002F5.layers","i-lucide-layers-2",{"title":57,"path":58,"stem":59,"icon":60},"Timeline, states and animation","\u002Fen\u002Fbuild\u002Ftimeline-and-animation","en\u002F2.build\u002F6.timeline-and-animation","i-lucide-clapperboard",{"title":62,"path":63,"stem":64,"icon":65},"Design and theme","\u002Fen\u002Fbuild\u002Fdesign-and-theme","en\u002F2.build\u002F7.design-and-theme","i-lucide-palette",{"title":67,"icon":68,"path":69,"stem":70,"children":71,"page":25},"Interactivity","i-lucide-zap","\u002Fen\u002Finteract","en\u002F3.interact",[72,76,81],{"title":73,"path":74,"stem":75,"icon":68},"Triggers and variables","\u002Fen\u002Finteract\u002Ftriggers-and-variables","en\u002F3.interact\u002F1.triggers-and-variables",{"title":77,"path":78,"stem":79,"icon":80},"Trigger recipes","\u002Fen\u002Finteract\u002Ftrigger-recipes","en\u002F3.interact\u002F2.trigger-recipes","i-lucide-chef-hat",{"title":82,"path":83,"stem":84,"icon":85},"Questions and results","\u002Fen\u002Finteract\u002Fquestions-and-results","en\u002F3.interact\u002F3.questions-and-results","i-lucide-list-checks",{"title":87,"icon":88,"path":89,"stem":90,"children":91,"page":25},"Publish and share","i-lucide-package","\u002Fen\u002Fship","en\u002F4.ship",[92,97,102,107,112],{"title":93,"path":94,"stem":95,"icon":96},"Preview and publish","\u002Fen\u002Fship\u002Fpreview-and-export","en\u002F4.ship\u002F1.preview-and-export","i-lucide-play",{"title":98,"path":99,"stem":100,"icon":101},"SCORM and Moodle","\u002Fen\u002Fship\u002Fscorm-and-moodle","en\u002F4.ship\u002F2.scorm-and-moodle","i-lucide-graduation-cap",{"title":103,"path":104,"stem":105,"icon":106},"Imports","\u002Fen\u002Fship\u002Fimports","en\u002F4.ship\u002F3.imports","i-lucide-file-input",{"title":108,"path":109,"stem":110,"icon":111},"Versions and backup","\u002Fen\u002Fship\u002Fversions-and-backup","en\u002F4.ship\u002F4.versions-and-backup","i-lucide-history",{"title":113,"path":114,"stem":115,"icon":116},"Privacy and offline use","\u002Fen\u002Fship\u002Fprivacy-and-offline","en\u002F4.ship\u002F5.privacy-and-offline","i-lucide-shield-check",{"title":118,"icon":119,"path":120,"stem":121,"children":122,"page":25},"Working with AI","i-lucide-sparkles","\u002Fen\u002Fai","en\u002F5.ai",[123,126,131,136,141],{"title":118,"path":124,"stem":125,"icon":119},"\u002Fen\u002Fai\u002Fthree-ways","en\u002F5.ai\u002F1.three-ways",{"title":127,"path":128,"stem":129,"icon":130},"Connect your AI app","\u002Fen\u002Fai\u002Fconnect-your-app","en\u002F5.ai\u002F2.connect-your-app","i-lucide-plug",{"title":132,"path":133,"stem":134,"icon":135},"What the AI can do","\u002Fen\u002Fai\u002Fmcp-tools","en\u002F5.ai\u002F3.mcp-tools","i-lucide-wrench",{"title":137,"path":138,"stem":139,"icon":140},"Prompts that work","\u002Fen\u002Fai\u002Fprompts","en\u002F5.ai\u002F4.prompts","i-lucide-message-square-text",{"title":142,"path":143,"stem":144,"icon":145},"The course script","\u002Fen\u002Fai\u002Fcourse-script","en\u002F5.ai\u002F5.course-script","i-lucide-file-json",{"title":147,"icon":148,"path":149,"stem":150,"children":151,"page":25},"Reference","i-lucide-book-open","\u002Fen\u002Freference","en\u002F6.reference",[152,157],{"title":153,"path":154,"stem":155,"icon":156},"Keyboard shortcuts","\u002Fen\u002Freference\u002Fkeyboard-shortcuts","en\u002F6.reference\u002F1.keyboard-shortcuts","i-lucide-keyboard",{"title":158,"path":159,"stem":160,"icon":161},"Troubleshooting","\u002Fen\u002Freference\u002Ftroubleshooting","en\u002F6.reference\u002F2.troubleshooting","i-lucide-life-buoy",{"id":163,"title":73,"body":164,"description":1218,"extension":1219,"links":1220,"meta":1221,"navigation":1222,"path":74,"seo":1223,"stem":75,"__hash__":1224},"docs_en\u002Fen\u002F3.interact\u002F1.triggers-and-variables.md",{"type":165,"value":166,"toc":1196},"minimark",[167,192,198,201,229,233,238,323,330,341,345,360,492,496,502,660,664,667,727,737,741,744,804,807,811,878,889,893,903,1021,1056,1063,1066,1098,1105,1108,1119,1123,1130,1143,1147],[168,169,170,171,175,176,179,180,183,184,187,188,191],"p",{},"A ",[172,173,174],"strong",{},"trigger"," is a small rule that makes your course react: ",[172,177,178],{},"when"," something happens, ",[172,181,182],{},"do"," something. Example: when someone clicks the \"Next\" button, go to the next slide. You can add a condition (",[172,185,186],{},"if"," the score is at least 8) and something to do ",[172,189,190],{},"otherwise",". With triggers you build buttons, pop-ups, branching paths and little games, without writing any code.",[168,193,170,194,197],{},[172,195,196],{},"variable"," is a named box that remembers a value while someone works through the course, for example their points, their name or whether a chapter is done.",[168,199,200],{},"You work with these parts:",[202,203,204,211,217,223],"ul",{},[205,206,207,210],"li",{},[172,208,209],{},"Triggers tab",": the list of all triggers of the slide, its layers and the whole course.",[205,212,213,216],{},[172,214,215],{},"Trigger window",": where you set the action, the event and optional conditions.",[205,218,219,222],{},[172,220,221],{},"Variables window",": where you create and manage your variables.",[205,224,225,228],{},[172,226,227],{},"Built-in variables",": values the player fills in by itself, such as the score or the learner's name.",[230,231],"ui-path",{"path":232,"icon":68},"Properties panel > Triggers",[234,235,237],"h2",{"id":236},"set-up-in-4-steps","Set up in 4 steps",[239,240,241,246,257,261,283,287,314,318],"procedure",{},[242,243,245],"h3",{"id":244},"open-the-triggers-tab","Open the Triggers tab",[168,247,248,249,252,253,256],{},"In the properties panel on the right, click the lightning icon. That is the ",[172,250,251],{},"Triggers"," tab. It lists every trigger of the current slide. If you selected an object, you can also right-click it and choose ",[172,254,255],{},"Add trigger",".",[242,258,260],{"id":259},"click-trigger","Click Trigger",[168,262,263,264,267,268,271,272,275,276,279,280,256],{},"Click the orange ",[172,265,266],{},"Trigger"," button at the top of the panel. The window ",[172,269,270],{},"New trigger"," opens. Under ",[172,273,274],{},"Quick start"," you can pick a ready-made template (for example ",[172,277,278],{},"Button shows layer","), and all fields are filled in for you. More templates: ",[281,282,77],"a",{"href":78},[242,284,286],{"id":285},"choose-the-action-and-the-event","Choose the action and the event",[168,288,289,290,293,294,297,298,301,302,305,306,309,310,313],{},"Under ",[172,291,292],{},"1 Action",", choose what should happen, for example ",[172,295,296],{},"Show layer",". Under ",[172,299,300],{},"2 Event",", choose when it happens (",[172,303,304],{},"When",", for example ",[172,307,308],{},"User clicks",") and on which ",[172,311,312],{},"Object",". Below every choice you see a short explanation with an example.",[242,315,317],{"id":316},"check-the-sentence-and-save","Check the sentence and save",[168,319,320,321,256],{},"At the top of the window, the trigger reads as a sentence, for example \"Jump to the next slide when the user clicks Tile Networks\". If it says what you want, click ",[172,322,255],{},[168,324,325],{},[326,327],"img",{"alt":328,"src":329},"The Triggers tab of the sample slide Course menu: the slide on the left, the list of slide triggers with on\u002Foff switches on the right","\u002Fscreenshots\u002Fen\u002Ftriggers-and-variables-panel.png",[331,332,335,336,340],"hint-box",{"kind":333,"title":334},"tip","Try it right away","Press ",[337,338],"key-combo",{"keys":339},"F12"," to play the current slide in the preview and click your button. Triggers work in the preview just like in the published course.",[234,342,344],{"id":343},"the-triggers-tab","The Triggers tab",[168,346,347,348,351,352,355,356,359],{},"The tab groups triggers by where they are stored: ",[172,349,350],{},"Slide triggers",", one group per layer (",[172,353,354],{},"Layer triggers",") and ",[172,357,358],{},"Project triggers",". Inside a group, triggers are sorted by the object they belong to.",[361,362,363,376],"table",{},[364,365,366],"thead",{},[367,368,369,373],"tr",{},[370,371,372],"th",{},"Element",[370,374,375],{},"What it does",[377,378,379,393,408,423,433,441,453,465,476],"tbody",{},[367,380,381,387],{},[382,383,384,386],"td",{},[172,385,266],{}," (orange button)",[382,388,389,390,392],{},"Opens ",[172,391,270],{}," for the current slide or layer.",[367,394,395,398],{},[382,396,397],{},"Filter icon",[382,399,400,403,404,407],{},[172,401,402],{},"Show only triggers of the selected objects",". Handy on busy slides. ",[172,405,406],{},"Show all triggers again"," clears the filter.",[367,409,410,413],{},[382,411,412],{},"Copy and paste icons",[382,414,415,418,419,422],{},[172,416,417],{},"Copy selected triggers"," and paste them into another slide or layer (",[172,420,421],{},"Paste triggers",").",[367,424,425,428],{},[382,426,427],{},"Trash icon",[382,429,430,256],{},[172,431,432],{},"Delete selected triggers",[367,434,435,438],{},[382,436,437],{},"Plus in a group header",[382,439,440],{},"Adds a trigger to exactly that group, for example to the project triggers.",[367,442,443,446],{},[382,444,445],{},"Switch in front of a trigger",[382,447,448,449,452],{},"Turns the trigger off without deleting it (",[172,450,451],{},"Turn trigger off (it is kept)","). Useful for testing.",[367,454,455,458],{},[382,456,457],{},"Small heading above a trigger",[382,459,460,461,464],{},"Your own ",[172,462,463],{},"Label",", if you gave one.",[367,466,467,470],{},[382,468,469],{},"Click on a trigger",[382,471,472,473,256],{},"Selects it, for example to copy or delete it. A double-click opens ",[172,474,475],{},"Edit trigger",[367,477,478,481],{},[382,479,480],{},"Right-click or the small buttons on a trigger",[382,482,483,485,486,485,489,256],{},[172,484,475],{},", ",[172,487,488],{},"Duplicate trigger",[172,490,491],{},"Delete trigger",[234,493,495],{"id":494},"the-trigger-window","The trigger window",[168,497,498],{},[326,499],{"alt":500,"src":501},"The New trigger window with Quick start, Action, Event, Conditions and Advanced","\u002Fscreenshots\u002Fen\u002Ftriggers-and-variables-editor.png",[361,503,504,512],{},[364,505,506],{},[367,507,508,510],{},[370,509,372],{},[370,511,375],{},[377,513,514,522,548,567,580,594,604,614,633,643],{},[367,515,516,519],{},[382,517,518],{},"Sentence at the top",[382,520,521],{},"Shows the whole trigger in plain words, so you can check it at a glance.",[367,523,524,528],{},[382,525,526],{},[172,527,274],{},[382,529,530,531,485,533,485,536,485,539,485,542,485,545,256],{},"Six templates that fill in everything: ",[172,532,278],{},[172,534,535],{},"Go to the next slide",[172,537,538],{},"Change state on click",[172,540,541],{},"Count points (variable +1)",[172,543,544],{},"Close layer",[172,546,547],{},"Skip slide if variable is true",[367,549,550,554],{},[382,551,552],{},[172,553,292],{},[382,555,556,557,485,560,563,564,256],{},"What happens. Depending on the action, more fields appear, for example ",[172,558,559],{},"Layer",[172,561,562],{},"Slide"," or ",[172,565,566],{},"Variable",[367,568,569,573],{},[382,570,571],{},[172,572,300],{},[382,574,575,577,578,256],{},[172,576,304],{}," it happens, and for which ",[172,579,312],{},[367,581,582,587],{},[382,583,584],{},[172,585,586],{},"3 Conditions",[382,588,589,590,593],{},"Optional. The action only runs if the conditions are met. ",[172,591,592],{},"Condition"," adds one. Without conditions, the action always runs.",[367,595,596,601],{},[382,597,598],{},[172,599,600],{},"Advanced: Else action",[382,602,603],{},"Something to do when the conditions are not met, for example show a \"Wrong\" layer instead of \"Correct\". Add a condition first.",[367,605,606,611],{},[382,607,608],{},[172,609,610],{},"Advanced: Label",[382,612,613],{},"Your own name for the trigger list, for example \"Navigation\". Helps when a slide has many triggers.",[367,615,616,621],{},[382,617,618],{},[172,619,620],{},"Advanced: Save in",[382,622,623,625,626,628,629,632],{},[172,624,562],{}," (only here), ",[172,627,559],{}," (only while that layer is visible) or ",[172,630,631],{},"Project"," (on every slide).",[367,634,635,640],{},[382,636,637],{},[172,638,639],{},"Active",[382,641,642],{},"Off: the trigger is saved but does nothing.",[367,644,645,653],{},[382,646,647,649,650],{},[172,648,255],{}," \u002F ",[172,651,652],{},"Save",[382,654,655,656,659],{},"Saves the trigger. ",[172,657,658],{},"Cancel"," closes the window without changes.",[234,661,663],{"id":662},"actions","Actions",[168,665,666],{},"An action is what the trigger does. In the window they are sorted into groups:",[361,668,669,678],{},[364,670,671],{},[367,672,673,676],{},[370,674,675],{},"Group",[370,677,663],{},[377,679,680,688,696,703,711,719],{},[367,681,682,685],{},[382,683,684],{},"General",[382,686,687],{},"Change state, Show layer, Hide layer, Show object, Hide object, Toggle visibility, Set focus, Play emphasis, Adjust variable, Start motion path",[367,689,690,693],{},[382,691,692],{},"Navigation",[382,694,695],{},"Next slide, Previous slide, Jump to slide, Jump to scene, Slide as lightbox, Close lightbox",[367,697,698,700],{},[382,699,47],{},[382,701,702],{},"Play media, Pause media, Stop media, Pause timeline, Resume timeline, Restart timeline, Jump on timeline",[367,704,705,708],{},[382,706,707],{},"Background audio",[382,709,710],{},"Play background audio, Pause background audio, Stop background audio, Set background audio",[367,712,713,716],{},[382,714,715],{},"Project \u002F results",[382,717,718],{},"Submit interaction, Submit results, Review results, Reset results, Retry quiz, Print results, Exit course, Restart course, Complete course",[367,720,721,724],{},[382,722,723],{},"More",[382,725,726],{},"Open URL \u002F file, Send email, Execute JavaScript",[168,728,170,729,732,733,736],{},[172,730,731],{},"layer"," is an extra level on top of a slide, for example a pop-up or a feedback message. A ",[172,734,735],{},"lightbox"," opens another slide as a window on top of the current one.",[234,738,740],{"id":739},"events","Events",[168,742,743],{},"An event is the moment the trigger starts.",[361,745,746,754],{},[364,747,748],{},[367,749,750,752],{},[370,751,675],{},[370,753,740],{},[377,755,756,764,772,780,788,796],{},[367,757,758,761],{},[382,759,760],{},"Mouse",[382,762,763],{},"User clicks, User double-clicks, User right-clicks, Mouse hovers over, Mouse enters, Mouse leaves",[367,765,766,769],{},[382,767,768],{},"Timeline",[382,770,771],{},"Timeline starts, Timeline ends, Timeline reaches (a point in time or a cue point)",[367,773,774,777],{},[382,775,776],{},"Objects and variables",[382,778,779],{},"Media completes, State changes, Variable changes, Focus lost, Animation completes",[367,781,782,785],{},[382,783,784],{},"Drag and drop",[382,786,787],{},"Object dropped on, Object dragged over",[367,789,790,793],{},[382,791,792],{},"Keyboard and gestures",[382,794,795],{},"Key pressed, User swipes",[367,797,798,801],{},[382,799,800],{},"Motion",[382,802,803],{},"Object intersects, Intersection ends, Object enters the slide, Object leaves the slide",[168,805,806],{},"\"Timeline starts\" fires as soon as a slide or layer opens. Use it for things that should happen by themselves.",[234,808,810],{"id":809},"conditions","Conditions",[361,812,813,825],{},[364,814,815],{},[367,816,817,819,822],{},[370,818,592],{},[370,820,821],{},"What it checks",[370,823,824],{},"Example",[377,826,827,839,852,865],{},[367,828,829,833,836],{},[382,830,831],{},[172,832,566],{},[382,834,835],{},"The value of a variable: equals, does not equal, is less than, is less than or equal to, is greater than, is greater than or equal to, contains, does not contain, is empty, is not empty",[382,837,838],{},"\"Points\" is greater than or equal to 8",[367,840,841,846,849],{},[382,842,843],{},[172,844,845],{},"Object state",[382,847,848],{},"Whether an object is (or is not) in a state",[382,850,851],{},"The checkbox is \"Selected\"",[367,853,854,859,862],{},[382,855,856],{},[172,857,858],{},"Intersection",[382,860,861],{},"Whether two objects overlap",[382,863,864],{},"The puzzle piece lies on the field",[367,866,867,872,875],{},[382,868,869],{},[172,870,871],{},"Window width",[382,873,874],{},"How wide the learner's player window is, with presets for iPhone, iPad, laptop and large screens",[382,876,877],{},"Narrower than 600 px: show a simpler layer",[168,879,880,881,884,885,888],{},"Several conditions are combined with ",[172,882,883],{},"AND"," (all must be true) or ",[172,886,887],{},"OR"," (one is enough).",[234,890,892],{"id":891},"variables","Variables",[168,894,895,896,899,900,256],{},"Open ",[230,897],{"path":898},"View > Variables"," to manage your variables. You can also create a new one right inside the trigger window: open the variable list and choose ",[172,901,902],{},"New variable",[361,904,905,913],{},[364,906,907],{},[367,908,909,911],{},[370,910,372],{},[370,912,375],{},[377,914,915,937,946,961,982,992,1002,1012],{},[367,916,917,922],{},[382,918,919],{},[172,920,921],{},"Templates",[382,923,924,925,485,928,485,931,485,934,256],{},"Ready-made variables: ",[172,926,927],{},"Count points",[172,929,930],{},"Save name",[172,932,933],{},"Chapter done",[172,935,936],{},"Count attempts",[367,938,939,943],{},[382,940,941],{},[172,942,902],{},[382,944,945],{},"Creates an empty variable.",[367,947,948,953],{},[382,949,950],{},[172,951,952],{},"Name",[382,954,955,956,960],{},"Letters, digits and ",[957,958,959],"code",{},"_",", no spaces, not starting with a digit.",[367,962,963,968],{},[382,964,965],{},[172,966,967],{},"Type",[382,969,970,973,974,977,978,981],{},[172,971,972],{},"Number"," (points, attempts), ",[172,975,976],{},"Text"," (a name, an answer) or ",[172,979,980],{},"True\u002Ffalse"," (like a switch: chapter done or not).",[367,983,984,989],{},[382,985,986],{},[172,987,988],{},"Initial value",[382,990,991],{},"The value at the start of the course.",[367,993,994,999],{},[382,995,996],{},[172,997,998],{},"Description",[382,1000,1001],{},"A note for you: what is the variable for?",[367,1003,1004,1009],{},[382,1005,1006],{},[172,1007,1008],{},"Used",[382,1010,1011],{},"How often the variable is used in the course.",[367,1013,1014,1018],{},[382,1015,1016],{},[172,1017,227],{},[382,1019,1020],{},"Read-only values from the player (see below).",[168,1022,1023,1024,1027,1028,485,1031,485,1034,485,1037,485,1040,485,1043,485,1046,1049,1050,563,1053,256],{},"To change a variable while the course runs, use the action ",[172,1025,1026],{},"Adjust variable",". It can ",[172,1029,1030],{},"Assign (=)",[172,1032,1033],{},"Add (+)",[172,1035,1036],{},"Subtract (-)",[172,1038,1039],{},"Multiply (*)",[172,1041,1042],{},"Divide (\u002F)",[172,1044,1045],{},"Modulo (%)",[172,1047,1048],{},"Toggle (true\u002Ffalse)",", pick a ",[172,1051,1052],{},"Random number",[172,1054,1055],{},"Append (text)",[168,1057,1058,1059,1062],{},"To show a variable in a text box, write its name between percent signs: ",[957,1060,1061],{},"%Name%",". Example: \"Well done, %Name%!\"",[242,1064,227],{"id":1065},"built-in-variables",[168,1067,1068,1069,485,1072,485,1075,485,1078,485,1081,485,1084,485,1087,1090,1091,1094,1095,256],{},"The player fills these values by itself. You can show them in texts and use them in conditions, but you cannot change them. Examples: ",[957,1070,1071],{},"Project.SlideNumber",[957,1073,1074],{},"Project.TotalSlides",[957,1076,1077],{},"Project.ProgressPercent",[957,1079,1080],{},"Slide.Title",[957,1082,1083],{},"Results.ScorePercent",[957,1085,1086],{},"Results.Passed",[957,1088,1089],{},"Learner.Name"," and ",[957,1092,1093],{},"Date.Today",". In the variable list of the trigger window you find all of them under ",[172,1096,1097],{},"Built-in (read-only)",[331,1099,1101,1104],{"kind":333,"title":1100},"Learner name from Moodle",[957,1102,1103],{},"%Learner.Name%"," shows the name Moodle reports, for example \"Hello %Learner.Name%, you scored %Results.ScorePercent% percent.\"",[234,1106,358],{"id":1107},"project-triggers",[168,1109,1110,1111,1113,1114,1116,1117,256],{},"Project triggers apply on every slide. Example from the sample course: when the H key is pressed, jump to the \"Course menu\" slide. Create one with the plus next to ",[172,1112,358],{},", or choose ",[172,1115,631],{}," under ",[172,1118,620],{},[234,1120,1122],{"id":1121},"javascript-triggers","JavaScript triggers",[168,1124,1125,1126,1129],{},"The action ",[172,1127,1128],{},"Execute JavaScript"," runs your own code. You only need it for very special cases.",[331,1131,1134,1135,1138,1139,1142],{"kind":1132,"title":1133},"warning","Off by default, on only by you","JavaScript only runs when ",[172,1136,1137],{},"Allow JavaScript"," is on in ",[230,1140],{"path":1141},"View > Course",", and only in the published package, never in the preview. After every import the switch is off again. An AI can never switch it on.",[234,1144,1146],{"id":1145},"if-something-doesnt-work","If something doesn't work",[202,1148,1149,1161,1170,1182,1188],{},[205,1150,1151,1154,1155,1116,1157,1160],{},[172,1152,1153],{},"Nothing happens on click",": check the switch in front of the trigger (it must be on) and the ",[172,1156,312],{},[172,1158,1159],{},"Event",". Is the trigger stored on the right layer?",[205,1162,1163,1166,1167,1169],{},[172,1164,1165],{},"The trigger fires on the wrong slide",": under ",[172,1168,620],{},", check whether it is a slide, layer or project trigger.",[205,1171,1172,1175,1176,1178,1179,1181],{},[172,1173,1174],{},"The condition never matches",": open the preview with ",[337,1177],{"keys":339}," and click ",[172,1180,892],{},". There you watch every value change live.",[205,1183,1184,1187],{},[172,1185,1186],{},"The else action can't be switched on",": it needs at least one condition first.",[205,1189,1190,1193,1194,256],{},[172,1191,1192],{},"JavaScript does nothing",": it never runs in the preview. Publish the course and turn on ",[172,1195,1137],{},{"title":1197,"searchDepth":1198,"depth":1198,"links":1199},"",2,[1200,1207,1208,1209,1210,1211,1212,1215,1216,1217],{"id":236,"depth":1198,"text":237,"children":1201},[1202,1204,1205,1206],{"id":244,"depth":1203,"text":245},3,{"id":259,"depth":1203,"text":260},{"id":285,"depth":1203,"text":286},{"id":316,"depth":1203,"text":317},{"id":343,"depth":1198,"text":344},{"id":494,"depth":1198,"text":495},{"id":662,"depth":1198,"text":663},{"id":739,"depth":1198,"text":740},{"id":809,"depth":1198,"text":810},{"id":891,"depth":1198,"text":892,"children":1213},[1214],{"id":1065,"depth":1203,"text":227},{"id":1107,"depth":1198,"text":358},{"id":1121,"depth":1198,"text":1122},{"id":1145,"depth":1198,"text":1146},"Make slides react - events, actions and conditions, variables for text, numbers and true\u002Ffalse, and where triggers live.","md",null,{},{"icon":68},{"title":73,"description":1218},"BeXVtjd-LYgtKhrbusAWBaXYRrPzhdQ9E6qkA-DAAVI",[1226,1228],{"title":62,"path":63,"stem":64,"description":1227,"icon":65,"children":-1},"Set colors, fonts and rounding for the whole course, choose a design template, set up the course player and the course properties.",{"title":77,"path":78,"stem":79,"description":1229,"icon":80,"children":-1},"Ready-made trigger patterns with the clicks in the editor and the same trigger in the course script, ready to copy.",1793209472098]