HomeTechnical Support » Modifying Forms

Modifying Forms

Proper Syntax #if #else Messages in this topic - RSS

Paul
Posts: 7


4/11/2016
Paul
Posts: 7
Thank you. That helps.
0 link
Nancy
Administrator
Posts: 765


4/11/2016
Nancy
Administrator
Posts: 765
There are Miscellaneous Fields associated with PrintBoss Bank Records. These fields can be used to print specific text or graphics based on the bank account used. The fields are defined on the Edit\Bank List\Miscellaneous tab.


The Misc fields are optional and may contain a string, numeric value, or a logo file path and name. The description
for each of these fields is editable to add a reminder for the contents of the field. Roll your mouse over the Values
field to view the name of the associated variable. The following table outlines all the variables in this section:





edited by Nancy on 4/11/2016
0 link
Paul
Posts: 7


4/7/2016
Paul
Posts: 7
Nancy wrote:
Paul, we need more information. Do you want to choose a bank account before checks are printed from PrintBoss?


I want to print a field/value but only when BankA is being used. All other banks should not see that field/value printed.
0 link
Nancy
Administrator
Posts: 765


4/7/2016
Nancy
Administrator
Posts: 765
Paul, we need more information. Do you want to choose a bank account before checks are printed from PrintBoss?
0 link
Paul
Posts: 7


4/6/2016
Paul
Posts: 7
What is the syntax if I want to check whether a specific bank in being used?
0 link
paula
Administrator
Posts: 208


11/14/2014
paula
Administrator
Posts: 208
Either of the following are proper syntax:

#If «[!Empty, ÷{Vendoraddress2}÷]»
#Text 0.69 9, 9.89, "Courier New/10", ÷ {Vendoraddress2}÷
#Else
#Text 0.69, 9.89, "Courier New/10", ÷{VendorCity}÷
#Text 1.994, 9.89, "Courier New/10", ÷{VendorState}÷
#Text 2.337, 9.89.164, "Courier New/10", ÷{VendorZip}÷
#Endif

#If «[!Empty,÷{Vendoraddress2}]»
#Text 0.69, 10, "Courier New/10", ÷{VendorCity}÷
#Text 1.994, 10, "Courier New/10", ÷{VendorState}÷
#Text 2.337, 10.164, "Courier New/10", ÷{VendorZip}÷
#Endif

Depending on the PrintBoss Form you are using, it may be as simple as:

#[!E, ÷ {Vendoraddress2}÷]Text 0.69 9, 9.89, "Courier New/10", ÷ {Vendoraddress2}÷

The City, State and Zip can also be on one line as follows:

#Text 0.69, 10, "Courier New/10", ÷{VendorCity}, {VendorState} {VendorZip}÷
0 link
sellis
Posts: 10


11/14/2014
sellis
Posts: 10
What is the proper syntax for using the #if and #else statements. I am trying to suppress empty address lines and checking if address line 2 is empty, but getting syntax errors. Documentation is vague. I've tried several different ways, but this is what the latest looks like

#If[!Empty, ÷{Vendoraddress2}÷]Text 0.69 9, 9.89, "Courier New/10",÷ {Vendoraddress2}÷
#Else Text 0.69, 9.89, "Courier New/10", ÷{VendorCity}÷
#Text 1.994, 9.89, "Courier New/10", ÷{VendorState}÷
#Text 2.337, 9.89.164, "Courier New/10", ÷{VendorZip}÷
#Endif
#IF[!Empty,÷{Vendoraddress2}]÷
#Text 0.69, 10, "Courier New/10", ÷{VendorCity}÷
#Text 1.994, 10, "Courier New/10", ÷{VendorState}÷
#Text 2.337, 10.164, "Courier New/10", ÷{VendorZip}÷
#Endif

Or, if you have a better way of suppressing an address line. I cannot use the #Assign LastLine because this is from a text file import using the PB#Assign with each assignment on a different line. Not our normal way of capturing the data, but this is coming from an source outside of our financial system.
thanks!
0 link






Powered by Jitbit Forum 8.3.8.0 © 2006-2013 Jitbit Software