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

Function istrue

script-converter.beta.js:568–574  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

566}
567// 是否为真 与其他脚本逻辑一致
568function istrue(str) {
569 if (str == true || str == 1 || str == 'true' || str == '1') {
570 return true
571 } else {
572 return false
573 }
574}
575function redirect(url) {
576 return {
577 body: '',

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected