From b2162dcb7bb959dc5afd6713586a6253c53f47c4 Mon Sep 17 00:00:00 2001 From: elioat Date: Sun, 10 Dec 2023 16:42:31 -0500 Subject: * --- decker/if.deck | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 decker/if.deck (limited to 'decker/if.deck') diff --git a/decker/if.deck b/decker/if.deck new file mode 100644 index 0000000..14151d3 --- /dev/null +++ b/decker/if.deck @@ -0,0 +1,26 @@ +{deck} +version:1 +card:0 +size:[512,342] +name:"if.deck" + +{card:home} +{widgets} +cm:{"type":"button","size":[60,20],"pos":[120,154],"script":"home.0","text":"Click Me"} +field:{"type":"field","size":[100,20],"pos":[195,154],"align":"center","value":"0"} + +{script:home.0} +on click do + + v:home.widgets.field.text + r:random[10] + + if v>r + print["v greater than r"] + print["v ",v] + print["r ",r] + end + +end +{end} + -- cgit 1.4.1-2-gfad0