EngineHub / EngineHub/CraftBook

Addition of standard comparison VAR ICs

Open
#821 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
320
Forks
166
Avg merge
6d 21h
Merged PRs (30d)
2

Description

CRAFTBOOK-2938 - Reported by Josh.Armitage

Currently, the only comparison VAR IC is VAR170 (Is At Least). While useful, additional comparison operations would logically round this out, including Is Less Than, Is [Equal To], Is Not, Is In, and Is Between, potential functions described thus:

Is Less Than: Determines if the numerical value of a variable is less than the value declared on the IC
Is: Determines if a numerical or string value of a variable is set to the declared value on the IC
Is Not: Determines if a numerical or string value of a variable is set to any value other than the declared value on the IC
Is In: Determines if the numerical value of a variable one of various declared values on the IC (For example, match if value is in 1,2,3,5,7)
Is Between: Determines if the numerical value of a variable falls between two bounds.

If these are deemed useful enough to include, the negated comparisons Is Not In and Is Not Between could also be useful.

This would work exceptionally well with the recent MOD additions to VAR100.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.