# Calculator logic

Allows you to write out math formulas

Calculated logic blocks currently offer these types of calculations:

Addition

Subtraction

Division

Multiplication

Min

Max

Mean

Mode

St Dev.

Round - Floor

Round - Ceiling

Referencing multiple calculated fields

If else statement

Learn how to use them on Math.js.

**Pro tip**: If you know how to write Math.js commands, you can create your own custom logic.

## Operator keyboard shortcuts

Name | Math symbol | Keyboard shortcut | Example |

Plus | + | N1+N2 | |

Minus | - | N1-N2 | |

Multiply | * | N1*N2 | |

Divide | / | N1/N2 | |

Left parentheses | ( | N1(N2) | |

Right parentheses | ) | N1(N2) | |

Power to | ^ | N1^2 | |

Greater than | > | N1>1 | |

Greater than or equals to | >= | N1>=1 | |

Less than | < | N1<1 | |

Less than or equals to | <= | N1<=1 | |

Equals to | == | N1==1 | |

Not equals to | != | N1!=1 |

The == sign is not just for numbers, but can also be used for strings of text. You can use it to specify if the user chosen option from R1 is a specific option, *Option 1*.
**R1=="Option 1"**

Last updated