]> Creatis software - bbtk.git/blob - packages/std/bbs/appli/exampleAdd.bbs
67a1b7b7911a53b20c0bbd8fb8061e740fdd4c3f
[bbtk.git] / packages / std / bbs / appli / exampleAdd.bbs
1 description "std::Add box example. Also shows how to print an output of a box in bbi. "
2 category "example"
3
4 include std
5 new Add a
6 set a.In1 1
7 set a.In2 2
8
9 # In a print command, any string enclosed between dollars 
10 # is interpreted as an output of a box (of the form 'box.output').
11 # Before printing, bbi substitutes it by the value of the output.
12 # There must be an adaptor to string for that type of output.
13 print $a.Out$