This expansion allows you to do conditional checks on the placeholders. Also allows you to do text transformations on the placeholders. Created by TheArmagan with ❤️
- You can use inline variables in everywhere in the text. (
{}
) - Order of the inputs are not important.
-
Both
then
andelse
are optional. -
==
: Equals- Inputs:
a
,b
- Example:
%condition_a:1_if:==_b:1_then:yep_else:nope%
->yep
- Inputs:
-
!=
: Not Equals- Inputs:
a
,b
- Example:
%condition_a:1_if:!=_b:1_then:yep_else:nope%
->nope
- Inputs:
-
>
: Greater Than- Inputs:
a
,b
- Example:
%condition_a:1_if:>_b:1_then:yep_else:nope%
->nope
- Inputs:
-
<
: Less Than- Inputs:
a
,b
- Example:
%condition_a:1_if:<_b:1_then:yep_else:nope%
->nope
- Inputs:
-
>=
: Greater Than or Equals- Inputs:
a
,b
- Example:
%condition_a:1_if:>=_b:1_then:yep_else:nope%
->yep
- Inputs:
-
<=
: Less Than or Equals- Inputs:
a
,b
- Example:
%condition_a:1_if:<=_b:1_then:yep_else:nope%
->yep
- Inputs:
-
&&
: And- Inputs:
a
,b
- Example:
%condition_a:true_if:&&_b:true_then:yep_else:nope%
->yep
- Inputs:
-
||
: Or- Inputs:
a
,b
- Example:
%condition_a:true_if:||_b:false_then:yep_else:nope%
->yep
- Inputs:
-
!
: Not- Inputs:
a
- Example:
%condition_a:true_if:!_then:yep_else:nope%
->nope
- Inputs:
-
contains
: Contains- Inputs:
a
,b
- Example:
%condition_a:hello_if:contains_b:ell_then:yep_else:nope%
->yep
- Inputs:
-
notContains
: Not Contains- Inputs:
a
,b
- Example:
%condition_a:hello_if:notContains_b:ell_then:yep_else:nope%
->nope
- Inputs:
-
startsWith
: Starts With- Inputs:
a
,b
- Example:
%condition_a:hello_if:startsWith_b:hel_then:yep_else:nope%
->yep
- Inputs:
-
notStartsWith
: Not Starts With- Inputs:
a
,b
- Example:
%condition_a:hello_if:notStartsWith_b:hel_then:yep_else:nope%
->nope
- Inputs:
-
endsWith
: Ends With- Inputs:
a
,b
- Example:
%condition_a:hello_if:endsWith_b:llo_then:yep_else:nope%
->yep
- Inputs:
-
notEndsWith
: Not Ends With- Inputs:
a
,b
- Example:
%condition_a:hello_if:notEndsWith_b:llo_then:yep_else:nope%
->nope
- Inputs:
-
matches
: Matches- Inputs:
a
,b
- Example:
%condition_a:hello_if:matches_b:hell._then:yep_else:nope%
->yep
- Inputs:
-
notMatches
: Not Matches- Inputs:
a
,b
- Example:
%condition_a:hello_if:notMatches_b:hell._then:yep_else:nope%
->nope
- Inputs:
-
empty
: Empty- Inputs:
a
- Example:
%condition_a:_if:empty_then:yep_else:nope%
->yep
- Inputs:
-
notEmpty
: Not Empty- Inputs:
a
- Example:
%condition_a:_if:notEmpty_then:yep_else:nope%
->nope
- Inputs:
-
between
: Between- Inputs:
a
,b
,c
- Example:
%condition_a:5_if:between_b:1_c:10_then:yep_else:nope%
->yep
- Inputs:
-
notBetween
: Not Between- Inputs:
a
,b
,c
- Example:
%condition_a:5_if:notBetween_b:1_c:10_then:yep_else:nope%
->nope
- Inputs:
-
in
: In- Inputs:
a
,b
- Example:
%condition_a:1_if:in_b:1,2,3_then:yep_else:nope%
->yep
- Inputs:
-
notIn
: Not In- Inputs:
a
,b
- Example:
%condition_a:1_if:notIn_b:1,2,3_then:yep_else:nope%
->nope
- Inputs:
-
longer
: Longer- Inputs:
a
,b
- Example:
%condition_a:hello_if:longer_b:hell_then:yep_else:nope%
->yep
- Inputs:
-
shorter
: Shorter- Inputs:
a
,b
- Example:
%condition_a:hello_if:shorter_b:hell_then:yep_else:nope%
->nope
- Inputs:
-
isInteger
: Is Integer- Inputs:
a
- Example:
%condition_a:1_if:isInteger_then:yep_else:nope%
->yep
- Inputs:
-
isNotInteger
: Is Not Integer- Inputs:
a
- Example:
%condition_a:1_if:isNotInteger_then:yep_else:nope%
->nope
- Inputs:
-
isDouble
: Is Double- Inputs:
a
- Example:
%condition_a:1.0_if:isDouble_then:yep_else:nope%
->yep
- Inputs:
-
isNotDouble
: Is Not Double- Inputs:
a
- Example:
%condition_a:1.0_if:isNotDouble_then:yep_else:nope%
->nope
- Inputs:
-
isBoolean
: Is Boolean- Inputs:
a
- Example:
%condition_a:true_if:isBoolean_then:yep_else:nope%
->yep
- Inputs:
-
isNotBoolean
: Is Not Boolean- Inputs:
a
- Example:
%condition_a:true_if:isNotBoolean_then:yep_else:nope%
->nope
- Inputs:
-
isAlphabetic
: Is Alphabetic- Inputs:
a
- Example:
%condition_a:hello_if:isAlphabetic_then:yep_else:nope%
->yep
- Inputs:
-
isNotAlphabetic
: Is Not Alphabetic- Inputs:
a
- Example:
%condition_a:hello_if:isNotAlphabetic_then:yep_else:nope%
->nope
- Inputs:
-
isAlphanumeric
: Is Alpha Numeric- Inputs:
a
- Example:
%condition_a:hello1_if:isAlphanumeric_then:yep_else:nope%
->yep
- Inputs:
-
isNotAlphanumeric
: Is Not Alpha Numeric- Inputs:
a
- Example:
%condition_a:hello1_if:isNotAlphanumeric_then:yep_else:nope%
->nope
- Inputs:
-
You can use input transformation on in every input key.
-
if
are optional. Onlythen
is required. -
You can use multiple transformations by separating them with
,
.- Example:
%condition_then:hello_then!options:lowercase,reverse%
- Example:
-
lowercase
: Lowercase- Example:
%condition_then:HELLO_then!options:lowercase%
->hello
- Example:
-
uppercase
: Uppercase- Example:
%condition_then:hello_then!options:uppercase%
->HELLO
- Example:
-
capitalize
: Capitalize- Example:
%condition_then:hello_then!options:capitalize%
->Hello
- Example:
-
reverse
: Reverse- Example:
%condition_then:hello_then!options:reverse%
->olleh
- Example:
-
trim
: Trim- Example:
%condition_then: hello _then!options:trim%
->hello
- Example:
-
trimStart
: Trim Start- Example:
%condition_then: hello _then!options:trimStart%
->hello
- Example:
-
trimEnd
: Trim End- Example:
%condition_then: hello _then!options:trimEnd%
->hello
- Example:
-
replace
: Replace- Inputs:
{key}!replaceFrom
,{value}!replaceTo
- Example:
%condition_then:hello_then!options:replace_then!replaceFrom:l_then!replaceTo:w%
->hewwo
- Inputs:
-
stripColors
: Strip Colors- Example:
%condition_then:&cHello &fWorld_then!options:stripColors%
->Hello World
- Example:
-
substring
: Substring- Inputs:
{key}!substringStart
,{key}!substringEnd
- Example:
%condition_then:hello_then!options:substring_then!substringStart:1_then!substringEnd:3%
->el
- Inputs:
-
join
: Join- Inputs:
{key}!joinSplitBy
,{key}!joinWith
- Example:
%condition_then:1,2,3,4_then!options:join_then!joinSplitBy:,_then!joinWith:-%
->1-2-3-4
- Inputs:
-
toInt
: To Integer- Example:
%condition_then:1_then!options:toInt%
->1
- Example:
-
toDouble
: To Double- Example:
%condition_then:1_then!options:toDouble%
->1.0
- Example:
-
toBoolean
: To Boolean- Example:
%condition_then:true_then!options:toBoolean%
->true
- Example:
-
onlyNumbers
: Only Numbers- Example:
%condition_then:1a2b3c_then!options:onlyNumbers%
->123
- Example:
-
onlyLetters
: Only Letters- Example:
%condition_then:1a2b3c_then!options:onlyLetters%
->abc
- Example:
-
onlyAlphanumeric
: Only Alphanumeric- Example:
%condition_then:1a2b3c_then!options:onlyAlphanumeric%
->1a2b3c
- Example:
-
fancyText
: Fancy Text- Inputs:
{key}!fancyFormat
- Example:
%condition_then:hello_then!options:fancyText_then!fancyFormat:smallCaps%
->ʜᴇʟʟᴏ
- Available Formats:
smallCaps
round
- Inputs:
-
repeat
: Repeat- Inputs:
{key}!repeatTimes
- Example:
%condition_then:hello_then!options:repeat_then!repeatTimes:3%
->hellohellohello
- Inputs: