Skip to main content

Condition Operators

Understanding how logic in conditions works

What is it?

An operator is the part of a condition that decides what kind of check Avvoka runs. Every condition compares an answer from the questionnaire against something, and the operator sets the rule for that comparison. For example, in "show this clause if Governing Law equals England", the operator is equals.

When the check is true, Avvoka shows the text. When it is false, Avvoka hides it.

Operators you can use

Operator

What it checks

Example

Equals

The answer matches the value exactly

Governing Law equals England

Not equals

The answer is anything other than the value

Governing Law does not equal England

Greater than

A number is above the value

Fee is greater than 10,000

Less than

A number is below the value

Term in months is less than 12

Greater than or equal to

A number is the value or above

Number of parties is greater than or equal to 3

Less than or equal to

A number is the value or below

Notice period is less than or equal to 30

Contains

The answer includes the text anywhere. It is the logic needed for multiselect answers

Client name contains Ltd

Not contains

The answer does not include the text

Client name does not contain LLP

Present

The question has been answered

Notary name is answered

Not present

The question has been left blank

Notary name is not answered

Combining checks with And / Or

Use And when every check must be true. For example, show a clause only if Governing Law equals England and the fee is greater than 10,000.

Use Or when any one check is enough. For example, show a clause if the client is based in England or Wales.

You can group And and Or together for more detailed rules.

Worked example

You are automating a software licence agreement. Its questionnaire includes these questions:

Placeholder

Question

Answer type

TRIAL

Is there a free trial?

Yes / No

COUNTRY

Where is the customer based?

Text

USERS

How many users?

Number

PO_NUMBER

Purchase order number (optional)

Text

SERVICES

Which services are included?

Text


How to set it up

Every condition is set up the same way. Only the operator changes.

  1. Select the clause and open the condition builder.

  2. Choose the question (for example TRIAL).

  3. Choose the operator (for example Equals).

  4. Enter the value to check against (for example Yes). Present and Not present don’t need a value.


What each operator does

Equals and not equals

TRIAL equals Yes shows the Free trial clause only when the answer matches exactly. COUNTRY not equals United Kingdom shows the International transfers clause for any answer other than United Kingdom.

Condition

Answer

Clause appears?

TRIAL equals Yes

Yes

Yes

TRIAL equals Yes

yes

No (different letter case)

COUNTRY not equals United Kingdom

France

Yes

COUNTRY not equals United Kingdom

United Kingdom

No

⚠️ Note: Equals and Contains are case-sensitive. “yes” does not match “Yes”.

Greater than or equal, less than, and less than or equal

These operators compare numbers. In this example, each one controls a different pricing clause based on USERS.

Condition

Answer

Clause appears?

USERS greater than or equal 50

50

Yes

USERS greater than or equal 50

49

No

USERS less than 10

9

Yes

USERS less than 10

10

No

USERS less than or equal 10

10

Yes

USERS less than or equal 10

11

No

💡 Tip: The difference between less than and less than or equal is only the exact value itself. With 10 users, “less than 10” is not met, but “less than or equal 10” is.

Present and not present

These check whether a question has been answered at all. PO_NUMBER present shows a Purchase order reference clause when anything is entered. PO_NUMBER not present shows a standard invoicing clause when the field is left blank.

Condition

Answer

Clause appears?

PO_NUMBER present

PO-4471

Yes

PO_NUMBER present

(left blank)

No

PO_NUMBER not present

(left blank)

Yes

Contains and not contains

These check for a piece of text within an answer. SERVICES contains Support shows the Support schedule whenever the word “Support” appears in the answer. SERVICES not contains Support shows a sentence confirming support is excluded.

Condition

Answer

Clause appears?

SERVICES contains Support

Hosting and Support

Yes

SERVICES contains Support

hosting and support

No (different letter case)

SERVICES not contains Support

Hosting only

Yes


Quick reference


Related articles

Did this answer your question?