Skip to content

Additional <operators/constructors> Needed #27

@leasoncre

Description

@leasoncre

Request: additional functional operators needed for some use-cases:
Please add a function for:
<> (not equal to, opposite of "=" (or "!="))

ex:
currently I cannot test a string that changes constantly,
or have a set of commands run if the value returns false for the statement:
some placeholders can't be checked for an exact string value, but can be tested for a null/empty value
%luckperms_expiry_time_essentials.fly% returns a time value, but as a string ex:"1h 5m 3s"

add <if> placeholder:%luckperms_expiry_time_essentials.fly%<>""
add <msg> time remaining: %luckperms_expiry_time_essentials.fly%
add <endif>
add <msg> always msg

#==================lower priority/later on:
PS. can PAPI numerical values be tested for multiple values (with OR) the same way strings can?
ex: placeholder:%papi_value%=2|=4|=6 #(no spaces)
Is there an AND function?
ex: placeholder:%papi_value%=2 && %papi_value2%=test
or a multiple OR test on a single line?
ex: placeholder:%papi_value%=2 || %papi_value2%=test

There is a PlaceholderAPI MATH function that can do math functions with EvalEX, but that won't test multiple placeholders things in one statement. :/

Thank you.

Metadata

Metadata

Assignees

Labels

💡 SuggestionSuggestion to evolve the plugin

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions