Module: sems
Branch: master
Commit: fda7354a4799785e63a46624d95f5628d8cd1cfb
URL: 
https://github.com/sems-server/sems/commit/fda7354a4799785e63a46624d95f5628d8cd1cfb

Author: Juha Heinanen <[email protected]>
Committer: Juha Heinanen <[email protected]>
Date: 2015-11-26T13:14:33+02:00

sems/doc/dsm:  added 'for' and 'break' actions to syntax doc

---

Modified: doc/dsm/dsm_syntax.txt

---

Diff:  
https://github.com/sems-server/sems/commit/fda7354a4799785e63a46624d95f5628d8cd1cfb.diff
Patch: 
https://github.com/sems-server/sems/commit/fda7354a4799785e63a46624d95f5628d8cd1cfb.patch

---

diff --git a/doc/dsm/dsm_syntax.txt b/doc/dsm/dsm_syntax.txt
index 362d6d9..c7648de 100644
--- a/doc/dsm/dsm_syntax.txt
+++ b/doc/dsm/dsm_syntax.txt
@@ -43,6 +43,12 @@ function func_name() {
    <actions>
   }
 
+  for ($var in range(start, end)) { action; ... }
+    -- $var gets values from start to end - 1
+  for ($var in $myarray) { action; ... }
+  for ($key,$val in $mystruct) { action; ... }
+  break();
+
   func_name();
   ...
 

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to