Commit #8: New version of extractor with running the preferences method make things...
[smartthings-infrastructure.git] / Switch / aa.groovy
1 /////
2
3 def preferences(Closure Input) {
4         find(Input)
5 }
6
7 def input(String Inp) {
8         println(Inp)
9 }
10
11 preferences {
12         def d = 1
13         if (d==1)
14                 println "salam"
15         d=0
16         input "switch1"
17         if (d==0)
18                 println "oyo"
19 }
20