Pixel-Composer/scripts/printer/printer.gml

11 lines
237 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 = "[";
2023-07-25 20:12:40 +02:00
for( var i = 0, n = array_length(val); i < n; i++ ) {
2023-06-01 19:50:53 +02:00
ss += (i? ", " : "") + printBool(val[i]);
}
ss += "]";
return ss;
}