File: default.sdf

package info (click to toggle)
sdf 2.001%2B1-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,284 kB
  • sloc: perl: 18,543; sh: 31; makefile: 29
file content (25 lines) | stat: -rw-r--r-- 525 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This file tests the default macro

# test numbers
!default num1
!default num2 42
Variable num1 is [[num1]].
Variable num2 is [[num2]].

# test strings
!default str1 "My favorite station"
!default str2 "Hello world"
Variable str1 is [[str1]].
Variable str2 is [[str2]].

# test expressions
!default num3 42 * 2 / 3
!default str3 'AA-' . &Var("str1") . '-ZZ'
Variable num3 is [[num3]].
Variable str3 is [[str3]].

# test re-definition
!default num2 24
!default str2 str3
Variable num2 is [[num2]].
Variable str2 is [[str2]].