[feat] added and, or, not

This commit is contained in:
kwaroran
2023-07-25 11:14:52 +09:00
parent 0548f2d8f5
commit 06480047c6

View File

@@ -459,7 +459,16 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
}
case 'less_equal':{
return (Number(arra[1]) <= Number(arra[2])) ? '1' : '0'
}
}
case 'and':{
return (Number(arra[1]) && Number(arra[2])) ? '1' : '0'
}
case 'or':{
return (Number(arra[1]) || Number(arra[2])) ? '1' : '0'
}
case 'not':{
return (Number(arra[1]) === 0) ? '1' : '0'
}
}
}
if(p1.startsWith('random')){