tlawrenceT
BuildShip16mo ago
3 replies
tlawrence

Handle undeclared values in Javascript

I'm trying to take the first not null/defined var i.e. (var1 ?? var2 ?? 'no_value). But the issue I'm running into is var2 is defined in a branch that is not always triggered in the workflow so when the coalesce trys to run it fails saying it does not exist. How should I handle this with Buildship.
Was this page helpful?