0

I have the potential for two different outputs based on three additional attributes and the values they contain:

#if($f3=="Banana" && $f2.contains("Mud"))
This is gross
#end

Works just fine. However if I want to add in an #elseif to check for $f2 NOT containing "Mud", that's where I'm stuck.

Luca Angioloni
  • 2,243
  • 2
  • 19
  • 28
JBAVTL
  • 1
  • Sorted it out: #if($f3=="Banana" && $f2.contains("Mud")) This is gross #elseif($f3=="Banana" && !$f2.contains("Mud")) Bananas Foster For Everyone! #end – JBAVTL Dec 08 '20 at 22:45

1 Answers1

1

Add inner if with else:

#if($f3=="Banana")
  #if ($f2.contains("Mud")) contains
  #else not contains
  #end
#end
Ori Marko
  • 56,308
  • 23
  • 131
  • 233