contact  |  about  |  sitemap

Check for empty variables
Last Post 12 Nov 2009 01:31 PM by Tijn. 1 Replies.
Sort:
PrevPrev NextNext
Author Messages
Mike

--
12 Nov 2009 01:30 PM
What is the best way to end an Add to Variable from empty stored variables
that I am adding to.

Copy from source successfully for Data1, Data2, and Data3 is Empty (copy
from source loop will end, now I want to add to variables only to datafields that have data).

Add to Variable - [Prefix]Data1,[Prefix]Data2,[Prefix]Data3 (I want to end
add to variable if Data1, Data2, Data3 are empty.) I've tried all kinds of
loops and conditions with no success. I ran into the same issue on the demo version of Version 3.


Tijn

--
12 Nov 2009 01:31 PM
Usually you use an If Condition if empty to check if an data field is empty an act accordingly.

In version 3 there is an new action called Validate Data that can also check on empty values and jump to a label in such an condition. You can also nest If condition is empty variables if that is what you mean. See the attached script.

Tijn

test_empty_variables.djs



Quick Reply
toggle
  Username:
Subject:
Body:
Security Code:
Enter the code shown above:

Submit

Powered by Active Forums

Forum participation and optional registration

You don't need to be registered to partcipate in the Djuggler forums, however if you want to subscribe to email notifications you need to register. You can also subscribe to the forum RSS feed.