Skip to content

Commit

Permalink
Add support for [if tmp foo] - looks for temporary values set with [t…
Browse files Browse the repository at this point in the history
…s] or [tn] tags.
  • Loading branch information
Josh Lavin committed May 2, 2014
1 parent 2c9c489 commit 5bdb9f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Vend/Interpolate.pm
Expand Up @@ -992,6 +992,12 @@ sub conditional {
if defined $comp;
delete $::Scratch->{$term};
}
elsif($base eq 'tmp') {
$op = qq%$Tmp->{$term}%;
$op = "q{$op}" unless defined $noop;
$op .= qq% $operator $comp%
if defined $comp;
}
elsif($base =~ /^e?value/) {
$op = qq%$::Values->{$term}%;
$op = "q{$op}" unless defined $noop;
Expand Down

0 comments on commit 5bdb9f5

Please sign in to comment.