Null values using calculator

10 views
Skip to first unread message

Jordan McDonnell

unread,
Mar 2, 2015, 10:30:11 PM3/2/15
to cenos...@googlegroups.com
I've been using the calculator to generate values from time sheets. However when using the javascript template if a field isn't filled in (i.e. a saturday or sunday) it produces an incorrect value.
Is there some script I could insert to negate this effect? I.e. if (var ! = null) then (var = 0) 

CenoPDF Support

unread,
Mar 2, 2015, 10:36:57 PM3/2/15
to cenos...@googlegroups.com

Jordan,

 

Thanks for asking.

 

The script I can think of is:

 

X = (var ? var : 0);

 

You can also create a document level function to do this. It will be shared by all your scripts.

 

Yang

--
You received this message because you are subscribed to the Google Groups "CenoPDF Support Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cenosupport...@googlegroups.com.
To post to this group, send email to cenos...@googlegroups.com.
Visit this group at http://groups.google.com/group/cenosupport.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages