# Method FillIfThenElse

#### member FillIfThenElse: Tensor<bool> -> Tensor<'T> -> Tensor<'T> -> unit

Fills this tensor with an element-wise choice between two sources depending on a condition.

##### Declaration

`member FillIfThenElse: cond:Tensor<bool> -> ifTrue:Tensor<'T> -> ifFalse:Tensor<'T> -> unit`

##### Parameters

Type | Name | Description |
---|---|---|

Tensor<bool> | cond | The condition tensor. |

Tensor<'T> | ifTrue | The tensor containing the values to use for when an element of the condition is true. |

Tensor<'T> | ifFalse | The tensor containing the values to use for when an element of the condition is false. |