I am trying to create a system with conditional statements. I am saving multiple entries in a collection. In one field of that collection, I am saving 3 values: 1,2 and 3.
Now i want to display a picture system in blaze but i am not sure, how to do it.
What i wanna do, is get result from db first . then on basis of that i want to display set of pics. like for example if result is 1, i want to show pic of tiger. if value is 2, i want to show cat or if its there i want to show dog. basically i am not sure about how to do it.
i was coding in PHP before so never have to worry about conditional statements.but now blaze is giving me hard time to do basic things.
Thanks in advance for those, who are going to put any efforts.