Wiki source code of When [value] becomes true
Last modified by admin on 2023/10/24 11:56
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="box infomessage" %) | ||
2 | ((( | ||
3 | Waits until the specified value or function becomes true and then runs the script. | ||
4 | |||
5 | [[image:when_brick3.png]] | ||
6 | ))) | ||
7 | |||
8 | (% class="row" %) | ||
9 | ((( | ||
10 | (% class="col-xs-12 col-sm-6" %) | ||
11 | ((( | ||
12 | (% class="box" %) | ||
13 | ((( | ||
14 | ==== **Example** ==== | ||
15 | |||
16 | When the score reaches 5, the panda hides. | ||
17 | |||
18 | [[image:When_becomes_true_tutorial_a.png||alt="When [FUNCTION] becomes true Example 1"]] | ||
19 | |||
20 | [[image:When_becomes_true_tutorial_b.png]] | ||
21 | ))) | ||
22 | ))) | ||
23 | |||
24 | (% class="col-xs-12 col-sm-6" %) | ||
25 | ((( | ||
26 | (% class="box" %) | ||
27 | ((( | ||
28 | ==== **Result** ==== | ||
29 | |||
30 | [[[[image:null4.png||alt="Download"]]>>https://share.catrob.at/pocketcode/program/34647]] | ||
31 | |||
32 | [[image:when-__-becomes-true-2.gif||alt="When [FUNCTION] becomes true Result"]] | ||
33 | ))) | ||
34 | ))) | ||
35 | ))) | ||
36 | |||
37 | (% id="gtx-trans" style="position: absolute; left: 821px; top: 19px;" %) | ||
38 | ((( | ||
39 | (% class="gtx-trans-icon" %) | ||
40 | ((( | ||
41 | |||
42 | ))) | ||
43 | ))) |