Highlighted

If ... else.... help!

Avatar

Avatar

_Jenn_Dickens_

Avatar

_Jenn_Dickens_

_Jenn_Dickens_

07-01-2009

I have a field that if it is empty, needs to be filled, but if it has data, I need that data to be left as is...



I know how to write the if and have it fill in the info I need, however, what do I put for the else?



So far I have



var iVar=0;

if ((ECR_Nmr.rawValue==null){

xfa.sourceSet.ECP_ECR.last()

iVar=1

}

else

***and this is where I get lost... if it is already filled in, I need it to leave whatever is here alone***

}



Thanks! Jenn D.

Replies

Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

07-01-2009

so if it is already filled and you want to do nothig then do not have an else section.
Highlighted

Avatar

Avatar

_Jenn_Dickens_

Avatar

_Jenn_Dickens_

_Jenn_Dickens_

07-01-2009

oh! Now how simple is that?!! Thank you!



Jenn D.