summaryrefslogtreecommitdiffstats
path: root/test/data/snippets/ifexpression.pp
blob: 29a637291e666e0a098b985ba626b2464d6576b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$one = 1
$two = 2

if ($one < $two) and (($two < 3) or ($two == 2)) {
    notice("True!")
}

if "test regex" =~ /(.*) regex/ {
    file {
        "/tmp/${1}iftest": ensure => file, mode => 0755
    }
}