Skip to content

Commit

Permalink
You can totally have multiple elsif conditions, which seem to be proc…
Browse files Browse the repository at this point in the history
…essed in order.
  • Loading branch information
nfagerlund committed Mar 30, 2015
1 parent 2cce67d commit f6b897e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions future_elsif_repeats.pp
@@ -0,0 +1,14 @@
$myvariable = "third"

if $myvariable == "first" {
notify {"first":}
}
elsif $myvariable == "second" {
notify {"second":}
}
elsif $myvariable == "third" {
notify {"third":}
}
else {
notify {"fourth":}
}

0 comments on commit f6b897e

Please sign in to comment.