]> Creatis software - bbtk.git/blob - packages/std/bbs/appli/exampleAdd.bbs
Cosmetics
[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 'boxName.outputName').
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
14 print "The result is : $a.Out$"
15
16 # Warning --> an implicit \n is postponed to the string
17
18 print "That's all "
19 print "folks"