summaryrefslogtreecommitdiff
path: root/spec/fixtures/unit/pops/parser/lexer/ifexpression.pp
blob: 131530dcb596c5837ab5e8d2f63034fea800dafe (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'
    }
}