natemccurdy
06/30/2022, 1:17 AMSlackbot
06/30/2022, 1:25 AMnwops
06/30/2022, 1:26 AMSlackbot
06/30/2022, 1:03 PMSlackbot
06/30/2022, 1:21 PMMoe
06/30/2022, 1:24 PM1 Test: <%= $variable %>
2 Test: <%= $variable %>
3 <% if $othervar =~ Undef { %><% } else { %><%= $othervar %><% } -%>
4 Test: <%= $variable %>
5 Test: <%= $variable %>
Moe
06/30/2022, 1:26 PM1 Test: <%= $variable %>
2 Test: <%= $variable %>
3 <% if $othervar =~ Undef { %><% } else { %><%= $othervar %><% } -%>
4 Test: <%= $variable %>
5 Test: <%= $variable %>
In this example it would result in the following final output:
If $othervar
has data in it:
1 Test: data
2 Test: data
3 Test: otherdata
4 Test: data
5 Test: data
and if it does not have data in it, so it is undef, the output would be:
1 Test: data
2 Test: dataTest: otherdata
3 Test: data
4 Test: data
Hope this makes it a bit more clear.vchepkov
06/30/2022, 1:28 PMvchepkov
06/30/2022, 1:28 PMvchepkov
06/30/2022, 1:28 PMMoe
06/30/2022, 1:28 PMSlackbot
06/30/2022, 1:29 PMMoe
06/30/2022, 1:37 PM1 Test: <%= $variable %>
2 Test: <%= $variable %>
3 <% if $othervar =~ Undef { %><% } else { %><%= $othervar %><% } -%><% } %>
4 Test: <%= $variable %>
5 Test: <%= $variable %>
In this example it would result in the following final output:
If $othervar
has data in it:
1 Test: data
2 Test: data
3 Test: otherdata
4 Test: data
5 Test: data
and if it does not have data in it, so it is undef, the output would be:
1 Test: data
2 Test: dataTest: otherdata
3 Test: data
4 Test: data
Hope this makes it a bit more clear.Moe
06/30/2022, 1:38 PMMoe
06/30/2022, 2:35 PMAngeloMileto
06/30/2022, 2:52 PMSlackbot
06/30/2022, 2:57 PMsameer
06/30/2022, 3:24 PMSlackbot
06/30/2022, 3:27 PMAllahshukur Ahmadzada
06/30/2022, 3:33 PMvchepkov
06/30/2022, 3:33 PMbastelfreak
06/30/2022, 3:39 PMbastelfreak
06/30/2022, 3:44 PMCVQuesty
06/30/2022, 4:00 PMCVQuesty
06/30/2022, 4:01 PMAllahshukur Ahmadzada
06/30/2022, 4:15 PMSlackbot
06/30/2022, 4:15 PMbinford2k
06/30/2022, 6:32 PMDr Bunsen Honeydew
06/30/2022, 6:32 PMDr Bunsen Honeydew
06/30/2022, 8:45 PM