22
33>  CHAIN source
44
5- Compile and run the given source. Source  can be a file name, a line of code or an array of code. Use ENV to share variables with the parent process.
5+ Compile and run the given source. ` source `  can be a file name, a line of code or an array of code. Use ENV to share variables with the parent process.
66
7- Example 1: Using constants; Note: ` \" `  is used to create a quote inside the string
7+ ### Example 1: Using constants  
8+ 
9+ Note: ` \" `  is used to create a quote inside the string
810
911``` 
1012Chain "? \"100 + 50 is: \"; 100 + 50"  
1113
1214' Output: 100 + 50 is: 150 
1315``` 
1416
15- Example 2: Using variables
17+ ###  Example 2: Using variables 
1618
1719``` 
1820Env "SB1=6" 
@@ -22,7 +24,7 @@ Chain "? Env(\"SB1\") ^ Env(\"SB2\")"
2224' Output: 36 
2325``` 
2426
25- Example 3: Using an array
27+ ###  Example 3: Using an array 
2628
2729``` 
2830Env "SB1=3" 
@@ -38,7 +40,7 @@ Chain a
3840' Output: 3 6 9 12 15 
3941``` 
4042
41- Example 4: Using a file and returning a value
43+ ###  Example 4: Using a file and returning a value 
4244
4345``` 
4446' First we have to create a bas-file to show how chain works with files 
@@ -67,7 +69,7 @@ print "Return value SB1 is: "; Env("SB1");
6769' Return value SB1 is: 6 
6870``` 
6971
70- Example 5:
72+ ###  Example 5: 
7173
7274``` 
7375' Create demo bas file (could be any SmallBASIC file): 
@@ -101,7 +103,7 @@ Color 7:  ? "I'm The Parent Program..."
101103Color 15: ? "Child program returned value: "; Env("SB1") 
102104``` 
103105
104- Example 6: Creating an eval function
106+ ###  Example 6: Creating an eval function 
105107
106108``` 
107109' Dedicated to MGA. 
0 commit comments