about summary refs log tree commit diff stats
path: root/decker/if.deck
diff options
context:
space:
mode:
Diffstat (limited to 'decker/if.deck')
-rw-r--r--decker/if.deck26
1 files changed, 26 insertions, 0 deletions
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}
+