Pixel-Composer/scripts/printer/printer.gml

11 lines
230 B
Plaintext
Raw Normal View History

2023-06-01 19:50:53 +02:00
function printBool(val) {
2023-06-05 18:27:53 +02:00
if(!is_array(val)) return val? __txt("True") : __txt("False");
2023-06-01 19:50:53 +02:00
var ss = "[";
for( var i = 0; i < array_length(val); i++ ) {
ss += (i? ", " : "") + printBool(val[i]);
}
ss += "]";
return ss;
}