hey there!
this is my very first php coding. so be easy on me ;-)
ok. i got a TV (file) that lets me upload and place a swf. the TV is called [*flash*]. now i want to create a snippet that puts the swf embed code into the template when i insert a swf via the TV or not if i don’t.
so i created following code to check if the TV is empty or not:
<?php
$flash ="[*flash*]";
if( isset( $var ) ) echo "Variable Exists";
if( empty( $var ) ) echo "Variable is Empty";
?>
the result is "Variable Exists", even if i leave the TV blank.
Then I tried to make a workaround, checking the length of the string. If I leave the TV blank it returns the nr 9

????????
I also tried to check if it is an empty string:
but no success as well.
how can I solve my problem?
best
firewireflow