If builds an if statement.
(cond *Value, onTrue func())
| 163 | |
| 164 | // If builds an if statement. |
| 165 | func (b *Builder) If(cond *Value, onTrue func()) { |
| 166 | b.IfElse(cond, onTrue, nil) |
| 167 | } |
| 168 | |
| 169 | // IfElse builds an if-else statement. |
| 170 | func (b *Builder) IfElse(cond *Value, onTrue, onFalse func()) { |