Osclass forums

Support forums => Tips, tricks, and tutorials => Topic started by: armaniworld on August 29, 2018, 01:44:49 pm

Title: Help with if/else statement for displaying custom field value
Post by: armaniworld on August 29, 2018, 01:44:49 pm
Hello everyone,

For example i have a custom field called color, a dropdown with options (red,green).

on Loop-single and loop-premium i would like to display the value like so:
(I'm not good with PHP but you get my drift)

If color value is red = Do something here
Else if color is blue = Do something different
else if color is empty = Don't do anything here at all bruh



thanks!
Title: Re: Help with if/else statement for displaying custom field value
Post by: Aficionado on August 29, 2018, 03:15:59 pm
https://forums.osclass.org/tips-and-tricks/read-me/