MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / istrue

Function istrue

rule-parser.js:385–391  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

383})
384
385function istrue(str) {
386 if (str == true || str == 1 || str == 'true' || str == '1') {
387 return true
388 } else {
389 return false
390 }
391}
392
393function getArgArr(str) {
394 let arr = str.split('+')

Callers 1

rule-parser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected