Describes how to test CFL code, try out the results of functions, test layout coding, etc. quickly and easily by using Cyrious's debugger or to diagnose what part of a how-to_make_coding_easier_with_the_formula_builder code sequence is not producing the results you want or expect.
If you are an “amateur” like most “Users”, this is the most valuable tool in the Cyrious library. This capability permits every user to quickly see the results of CFL code or test code which is in a pricing form, formula, or layout to see which formulas, variables, modifiers, constants, etc are producing what results. You can copy code from your Product Pricing window and paste it in this window and then remove or “comment out” sections to see exactly what every piece of code is returning/
When using the CFL debugger to test code, you will need to have an Estimate or Work Order open in Edit mode and the product for which the code is written the selected Item.
//Additional Hints
// The double slash tells CFL that this line is not live code but a comment on the code
{The curly brace is used like the // double slash to make
a section of code a "comment. Everything between the Open and Close curly brace is treated like a comment
}
//These codes are important to include brief descriptions
of what your code is doing but also handy ways to exclude
certain sections of code from your formula to test what other parts are doing.
Contributor: Steve Gillispie, Acorn Sign Graphics
Date: 07/31/2009
Version: Control 4.3_