OSDN Git Service

Add: tutorial for PIONE about Control statement v2.0.2p0067
authorkinoshita-eos <kinoshita@yasunaga-lab.bio.kyutech.ac.jp>
Thu, 27 Nov 2014 06:50:34 +0000 (15:50 +0900)
committerkinoshita-eos <kinoshita@yasunaga-lab.bio.kyutech.ac.jp>
Thu, 27 Nov 2014 06:50:34 +0000 (15:50 +0900)
new file:   SampleCode/PIONE/Basic7/EvenOdd.pione

SampleCode/PIONE/Basic7/EvenOdd.pione [new file with mode: 0644]

diff --git a/SampleCode/PIONE/Basic7/EvenOdd.pione b/SampleCode/PIONE/Basic7/EvenOdd.pione
new file mode 100644 (file)
index 0000000..ee9e59f
--- /dev/null
@@ -0,0 +1,23 @@
+param $val := 123
+
+Rule Main
+       output 'message.txt'
+Flow
+       if $val % 2 == 0
+               rule Even
+       else
+               rule Odd
+       end
+End
+
+Rule Even
+       output 'message.txt'
+Action
+       echo "{$val} is even." > {$O[1]};
+End
+
+Rule Odd
+       output 'message.txt'
+Action
+       echo "{$val} is odd." > {$O[1]};
+End
\ No newline at end of file