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
@@ -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"
+}
+