summaryrefslogtreecommitdiffstats
path: root/examples/code/iftest
blob: bc9d9cff1d21710819cecf87e9a69f65ad78e8f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# $Id$
$variable = "value"

$cooltest = $variable ? {
    other => yayness,
    value => goodtest
}

if $variable == "other" {
    $cooltest = "yayness"
    $platform = $operatingsystem
} elsif $variable == "value" {
    $cooltest = "goodtest"
    $platform = $operatingsystem
} else {
    $goodness = $operatingsystemrelease
}

if "value" == "value" {
    $booyah = "value"
}