How to check if special character is present in the message?
Posted: Wed Aug 23, 2023 5:39 am
Please do help , im having a hard time fixing my code, but still it does not work , i only want to check if the certain special character is present in the message
here's my code
here's my code
Code: Select all
:local message "!Your message here"
:local specialChars "!@#$%^&*"
:local found false
:foreach char in=$message do={
:foreach special in=$specialChars do={
:if ($char ~ $special) do={
:set found true
:log warning "found"
}
}
}