From f6b897eed05458df6521f7c4eddaa3b916d18c53 Mon Sep 17 00:00:00 2001 From: Nick Fagerlund Date: Mon, 30 Mar 2015 11:42:24 -0700 Subject: [PATCH] You can totally have multiple elsif conditions, which seem to be processed in order. --- future_elsif_repeats.pp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 future_elsif_repeats.pp diff --git a/future_elsif_repeats.pp b/future_elsif_repeats.pp new file mode 100644 index 0000000..ab6fc96 --- /dev/null +++ b/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":} +}