Hi elixir members,
<%= if cashflow_entry.entry_type == "income" do %>
SVG for income
<% else %>
SVG for expense
<% end %>
but the above code always show “SVG for expense” while the entry_type is “income”.
Coming from python django, as a newbie, how do i compare this?
more info,
in schema, entry_type is an enum like below.
field :entry_type, Ecto.Enum, values: [:income, :expense]