you could use the flow operators:
```
fillOpacity = @fillOpacity && 0.5 || 0
```
or

```
fillOpacity - @fillOpacity and 0.5 or 0 
```