Formula
from the menu and watch the setup column pop upa + b
, a * b
, a / b
, a != b
5
, 42
, -1
, 3.14
, etc."foo"
, 'Clay'
, they need to be in "
or '
true
, false
[ "do", "ray", "me" ]
+
, -
(in their unary and binary forms, i.e. 5-3
and -3
or +3
)~
- bitwise negation!
- logical negation*
, /
- multiplication, division||
, &&
- logical OR, logical AND|
, &
, ^
- bitwise OR, bitwise AND, bitwise XOR=
- equality test!=
- inequality test<
, >
, <=
, >=
- comparison operators<<
, >>
- bit shift operators%
- modulo{{ "Full Name" }}.split(' ')[0]
Last name: {{ "Full Name" }}.split(' ')[1]
https://
or unwanted paths like /index.html
, i.e. Strip https://www.loom.com/about-us down to just loom.com{{ "Domain" }}.replace("https://", "").replace("www.", "").split("/")[0]
**if( {{condition}} , {{input}} )**
**if( {{ "Uses Hubspot" }} , {{Domain}} )**
{{ "Email" }}.includes("gmail")
{{ "Employee Count" }} >= 1000 ? "1000+" : {{ "Employee Count" }} >= 500 ? "500-1000" : {{ "Employee Count" }} >= 100 ? "100-500": {{ "Employee Count" }} >= 50 ? "50-100" : {{ "Employee Count" }} >= 25 ? "25-50" : {{ "Employee Count" }} >= 5 ? "5-25":"1-5"
if(["hotmail","gmail", "yahoo", "icloud", "outlook", "comcast", "proton"].some((domain)=>{{{ "Email Address" }}.includes(domain)}), false, true)
if({{ "Industry" }} && ["software", "internet", "information technology"].some((i)=>{{{ Industry }}.toLowerCase().includes(i)}), true, false)
if({{ "Employee Count" }} && {{ "Employee Count" }} > 50 && {{ "Employee Count" }} < 200, true, false)
Final Scoring
using a chain of operators to flow through the qualification logic.!{{ "Only work emails" }} ? false : {{ "In ideal industry" }} ? true : {{ "At least 20 employees"}} ? true : false
_
will refer to lodash, so _.chunk( [ 10, 20, 30, 40 ], 2 )
will result in [ [ 10, 20 ], [ 30, 40 ] ]
(arg1, arg2, ...) => { expression }
. The extra {}
are necessary. The above is equal to Javascript's (arg1, arg2, ...)=> expression
and (arg1, arg2, ...)=> { return expression }
..length
property, and methods like .split()
or .substring()
. Arrays have .length
, .concat
, .indexOf
, .map
, .filter
etc.