- What condition formulas do

- Zip, City & State Condition Formulas on Buyer Contracts

What condition formulas do

Condition formulas refine the lead fields that can be sold to the Buyer Contract.

Vertical fields Here is a reference to the fields that we will be validating with our condition formulas. As you can see two are numbers and one is a string data type.

Below are 3 examples of condition formulas.

Condition formulas on Buyer Contracts 1. This formula will evaluate whether the zip code (represented by the token #zipcode#) is equal to "55555".  Because the data type of the zip code field is a "number", the SQL formula used for this condition formula does not need single quotes around the token as we do for string values. If the condition formula equates to "True" then that parameter and value will be passed to the buyer on the post.

This next example (#2) depicts how your condition formula does not need to refer to the field you're evaluating.

2. This formula will evaluate whether the zip code is equal to "55555". If the formula equates to "True" then the City field will be passed to the Buyer.  If you wanted, you could add multiple different tokens in here to evaluate and receive a True/False response.
3. This condition formula is similar to the previous ones but is evaluating a string data type field, and requires wrapping both the token and the value we're validating against in single quotes.

Tips:

• Number data types do not need single quotes
• All other data types (including string, bool, date, and list) require single quotes around the field token and the value
{"ft_lang_label":"__label__en","ft_lang_prob":0.86457974,"math_prob":0.98112833,"size":1635,"snap":"2019-35-2019-39","text_gpt3_token_len":342,"char_repetition_ratio":0.17167382,"word_repetition_ratio":0.04964539,"special_character_ratio":0.2146789,"punctuation_ratio":0.078431375,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99352646,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,6,null,6,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-22T06:35:47Z\",\"WARC-Record-ID\":\"<urn:uuid:62d8f850-5ac3-4f39-a051-b3beed35eff1>\",\"Content-Length\":\"26797\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f8727b75-fa07-4025-8930-d85bdfd753f6>\",\"WARC-Concurrent-To\":\"<urn:uuid:2826ef6e-bea3-4030-89ef-90688e48bec4>\",\"WARC-IP-Address\":\"35.171.68.17\",\"WARC-Target-URI\":\"https://support.getcake.com/support/solutions/articles/5000545926/thumbs_up\",\"WARC-Payload-Digest\":\"sha1:WK2FLKFRR4JNFE7Q64WNAOACDIPG647Y\",\"WARC-Block-Digest\":\"sha1:2DPTI5MCTV63XQZCUIG3WSIM5ZYHU6EY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514575168.82_warc_CC-MAIN-20190922053242-20190922075242-00416.warc.gz\"}"}