Salome HOME
Go on
[modules/yacs.git] / src / yacsloader / samples / switch9.xml
old mode 100755 (executable)
new mode 100644 (file)
index 09bbffd..0a8559c
@@ -1,5 +1,5 @@
 <!--
-  Copyright (C) 2006-2014  CEA/DEN, EDF R&D
+  Copyright (C) 2006-2019  CEA/DEN, EDF R&D
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -29,7 +29,7 @@
     </inline>
     <inline name="n2" >
         <script>
-            <code>print p1</code>
+            <code>print(p1)</code>
         </script>
         <inport name="p1" type="double"/>
         <outport name="p1" type="double"/>
@@ -37,7 +37,7 @@
     <switch name="b1">
       <case id="1">
         <inline name="n2" >
-          <script><code>print p1</code></script>
+          <script><code>print(p1)</code></script>
           <inport name="p1" type="double"/>
           <outport name="p1" type="double"/>
         </inline>
@@ -47,7 +47,7 @@
           <case id="1">
             <inline name="n2" >
               <script>
-                  <code>print p1</code>
+                  <code>print(p1)</code>
                   <code>p1=p1+20</code>
                   <code><![CDATA[condition=p1 < 40.]]> </code>
               </script>
@@ -70,7 +70,7 @@
       </case>
       <default>
         <inline name="n2" >
-          <script><code>print p1</code></script>
+          <script><code>print(p1)</code></script>
           <inport name="p1" type="double"/>
           <outport name="p1" type="double"/>
         </inline>