projects
/
smartthings-infrastructure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Commit #8: New version of extractor with running the preferences method make things...
[smartthings-infrastructure.git]
/
Switch
/
aa.groovy
diff --git a/Switch/aa.groovy
b/Switch/aa.groovy
new file mode 100644
(file)
index 0000000..
39184b0
--- /dev/null
+++ b/
Switch/aa.groovy
@@ -0,0
+1,20
@@
+/////
+
+def preferences(Closure Input) {
+ find(Input)
+}
+
+def input(String Inp) {
+ println(Inp)
+}
+
+preferences {
+ def d = 1
+ if (d==1)
+ println "salam"
+ d=0
+ input "switch1"
+ if (d==0)
+ println "oyo"
+}
+