• R/O
  • HTTP
  • SSH
  • HTTPS

tutorial: Commit

This repository is for tutorials of Eos.


Commit MetaInfo

Revision241cfa56e99d2719ba64cfc8fc9e2aa6e2b4a161 (tree)
Time2014-11-27 15:50:34
Authorkinoshita-eos <kinoshita@yasu...>
Commiterkinoshita-eos

Log Message

Add: tutorial for PIONE about Control statement
new file: SampleCode/PIONE/Basic7/EvenOdd.pione

Change Summary

Incremental Difference

--- /dev/null
+++ b/SampleCode/PIONE/Basic7/EvenOdd.pione
@@ -0,0 +1,23 @@
1+param $val := 123
2+
3+Rule Main
4+ output 'message.txt'
5+Flow
6+ if $val % 2 == 0
7+ rule Even
8+ else
9+ rule Odd
10+ end
11+End
12+
13+Rule Even
14+ output 'message.txt'
15+Action
16+ echo "{$val} is even." > {$O[1]};
17+End
18+
19+Rule Odd
20+ output 'message.txt'
21+Action
22+ echo "{$val} is odd." > {$O[1]};
23+End
\ No newline at end of file
Show on old repository browser