PDA

View Full Version : load image when variable loaded


jcamilo
07-10-2003, 10:39 PM
basically I have five variables folder 1,2,3,4,5. if folder1 is empty, it will not show the image (folder.swf, same image for all variables) but if the variable IS NOT EMPTY it will show the image
how?

please help
thank you.

The variables are loaded by load variables command.:confused:

Caimin
07-14-2003, 01:24 PM
I don't fully understand exactly what you're trying to do but this is the basic way to detect whether a variable exists, maybe it will help:



if(!varname){

//code here runs if there is NO variable called "varname"

} else {

//code here runs if there IS a variable called "varname"

}