String interpolation: Difference between revisions

Content deleted Content added
Add BOO sample
Line 62:
puts "I have %s apples" % apples
</source>
 
The output will be:
<source lang="text">
I have 4 apples
</source>
 
=== BOO ===
<source lang="boo">
apples = 4
puts "I have $(apples) apples"
// or
puts "I have {0} apples" % apples
</source>
 
 
The output will be: