UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

10 lines (9 loc) 235 B
"use strict"; export class LiteralConstructsController { static if(args) { const condition = args[0]; const valTrue = args[1]; const valFalse = args[2]; return `((${condition}) ? (${valTrue}) : (${valFalse}))`; } }