3 ms·
This would be in spirit of JS. In Awk, afaik, ‘A || B’ will result in boolean (1 or 0).
by xonix 5y ago
This would be in spirit of JS. In Awk, afaik, ‘A || B’ will result in boolean (1 or 0).
- nmz 5y agoYep, The closest thing is ?: editor = config::get("core.editor") if (!editor) editor = ENVIRON["EDITOR"] ? ENVIRON["EDITOR"] : "vi"