you don't need to write [else] for your above code,
because text1.Text is always equal to text1.Text;
it's not a need to use [else] command after each [if] command.
so if you want text1.text change only if it is equal to "00:00"
you could doing only with if command (no need of else command):
Code:
function text1OnChange(Sender)
{
if(text1.Text=="00:00")
{
text1.Text=" "
}
}
but if you want to change text1.Text for other conditions than "00:00":
then you will need [else] like this:
Code:
function text1OnChange(Sender)
{
if(text1.Text=="00:00")
{
text1.Text=" "
}
else
{
text1.Text="something else"
}
}
and also if you want to change text1.Text only if it's not "00:00"
then you will need to use "!=" (this means not equal) instead of "==" (this means equal):
Code:
function text1OnChange(Sender)
{
if(text1.Text!="00:00")
{
text1.Text="this is not equal to 00:00"
}
}