Open leasoncre opened 4 years ago
Hello :)
You can already reverse a condition with <if> [!]conditional operator key:parameters
Prefixing an operator key with ! will make that conditional check negative, so it will execute its block if the condition is FALSE rather than TRUE.
So why adding a new operator if you can just reverse the conditon ?
====
For papi you can already compare number with OR
placeholder:%papi_value%=2|4|6
For the AND and OR for multiple placeholder I thinks if it's added it should be available for every operator so maybe a new conditional types can be a good idea like
Hello :) You can already reverse a condition with
<if> [!]conditional operator key:parameters
Prefixing an operator key with ! will make that conditional check negative, so it will execute its block if the condition is FALSE rather than TRUE. So why adding a new operator if you can just reverse the conditon ?
oh, i completely missed it.
A conditional IF statement is defined in this format: <if> [!]conditional operator key:parameters
I was looking in the BOLD ($) notes below the table for operators. :/
might? still be a need for it later? unknown. This should work just fine though. (main issue solved)
==== For papi you can already compare number with OR
placeholder:%papi_value%=2|4|6
For the AND and OR for multiple placeholder I thinks if it's added it should be available for every operator so maybe a new conditional types can be a good idea like and that can be used if it has an just above
For numbers, yes, but i was asking about STRINGS/text. "if it has an just above"???? #typos >< sounds good :)
Thank you.
For numbers, yes, but i was asking about STRINGS/text.
You can do the same with strings :)
"if it has an just above"???? #typos ><
a new conditional types can be a good idea like \
Not typos, just github that interprets \<>
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"
==================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.