Support

Account

Home Forums Front-end Issues If statement based on field type Reply To: If statement based on field type

  • Hi @aaronrobb

    of course, you could achieve this with an if statement like so:

    
    if( get_field('field_name') == 'yes' )
    {
        // do this
    }
    else
    {
        // do that
    }
    

    Does that help?