pages34735/static/extensions/nor.js
Thabel Offical 29a0aada39 extension
2024-05-14 17:11:04 +02:00

28 lines
No EOL
645 B
JavaScript

class NorExample {
info() {
return {
id: 'norexample',
name: 'Nor',
blocks: [
{
id: 'nor',
type: EaglerBuilder.BlockType.BOOLEAN,
text: '[A] nor [B]',
arguments: {
A: {
type: EaglerBuilder.ArgumentType.BOOLEAN
},
B: {
type: EaglerBuilder.ArgumentType.BOOLEAN,
}
},
func: (args) => {
return `!(${args.A} || ${args.B})`;
}
}
]
};
}
}
EaglerBuilder.extensions.register(new NorExample());