Skip to content

Commit e414018

Browse files
authored
Merge pull request #3524 from MicrosoftDocs/LanceDelano
```powerapps-dot around formulas
2 parents 5d240ce + 911df83 commit e414018

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

powerapps-docs/maker/canvas-apps/working-with-formulas-in-depth.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ search.app:
1818

1919
Most formulas calculate a value. Like an Excel spreadsheet, recalculation happens automatically as values change. For example, you might want to show the value in a **[Label](controls/control-text-box.md)** control in red if the value is less than zero or in black otherwise. So you can set the **[Color](controls/properties-color-border.md)** property of that control to this formula:
2020

21-
**If( Value(TextBox1.Text) >= 0, Color.Black, Color.Red )**
21+
```powerapps-dot
22+
If( Value(TextBox1.Text) >= 0, Color.Black, Color.Red )
23+
```
2224

2325
In this context, what does it mean when the user selects a **[Button](controls/control-button.md)** control? No value has changed, so there is nothing new to calculate. Excel has no equivalent to a **[Button](controls/control-button.md)** control.
2426

@@ -35,7 +37,9 @@ Because these functions change the state of the app, they can't be automatically
3537
### More than one action
3638
Use semicolons to create a list of actions to perform. For example, you might want to update a context variable and then return to the previous screen:
3739

38-
* **UpdateContext( { x: 1 } ); Back()**
40+
```powerapps-dot
41+
UpdateContext( { x: 1 } ); Back()
42+
```
3943

4044
Actions are performed in the order in which they appear in the formula. The next function won't start until the current function has completed. If an error occurs, subsequent functions might not start.
4145

0 commit comments

Comments
 (0)