• Hi!
    So I have this plugin that i had made for me a while ago. Now i have modified it a littlebit so i can use it for more than one purpose. On this new site im building, the slider can contain Either a video or slides of images. So i tried to make an if that looked like this:

    if( videoslider_output($post_id) != null) {
    videoslider_output($post_id);
    } else {
    imagecycle_output($post_id);
    }

    But that doesnt work the way i thought.. It spits out the data in the if. So if there Is something in ‘videoslider’ it will spit out the data in both the videoslider and the imagecycle even if the imagecycle is in the else.. So how do i get it to Not echo the data in the argument?
    Please help me fix this! Thanks in advance!

The topic ‘'If plugin output has data, do this else this' – help!’ is closed to new replies.