home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 106 / EnigmaAmiga106CD.iso / software / utilities / installer / examples / stringformat.installer < prev    next >
Encoding:
Text File  |  1999-06-22  |  298 b   |  18 lines

  1.  
  2. (user expert)
  3.  
  4. ; demonstration of the string format function
  5.  
  6. (set text1 ("%s %s %s" ("Hello")
  7.                        (" Wo%s" ("%sld " "r"))
  8.                        "!"
  9.            )
  10. )
  11.  
  12. (set text2 ("\n\nsome math: %ld * %ld = %ld" 30 40 (* 30 40)))
  13.  
  14. (exit ("%s%s" text1 text2) (quiet))
  15. (welcome)
  16.  
  17.  
  18.