]> Creatis software - bbtk.git/blob - packages/std/bbs/appli/exampleAdd.bbs
99d3907eb7b7e55b9090196f08998c110b352919
[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 author "laurent.guigues@creatis.insa-lyon.fr"
4
5 include std
6 new Add a
7   set a.In1 1
8   set a.In2 2
9
10 # In a print command, any string enclosed between dollars 
11 # is interpreted as an output of a box (of the form 'boxName.outputName').
12 # Before printing, bbi substitutes it by the value of the output.
13 # There must be an adaptor to string for that type of output.
14
15 print "The result is : $a.Out$"
16
17 # Warning --> an implicit \n is postponed to the string
18
19 print "That's all "
20 print "folks"
21