cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos

Please cleanup formatting on 'If' Statements

Hi,

It would be nice if powerapps could format If/And/Or statements logically. Now when i reformat it looks like this:

 

Oops, cant insert images tonite... trust me, its ugly :-)

Status: New
Comments
PowerApps Staff

Hi @RussellGove , can you send an example of an expression that you see the bad formatting? I just tried with a simple expression (see below) and I don't see anything really ugly :-)

FormatText.gif

Level 8

Hi Carlos,

Heres the expression

Filter(
'[dbo].[vw_observationObservee]',
(Supervisor1Email = ComboBoxObservationsPerson.Selected.Mail And RadioSelectionType.Selected.Name = "Supervisor" Or ObserverEmail = ComboBoxObservationsPerson.Selected.Mail And RadioSelectionType.Selected.Name = "Observer" Or Supervisor1Email = ComboBoxObservationsPerson.Selected.Mail And RadioSelectionType.Selected.Name = "Employee") And (SiteId = DropdownObservationsSite.Selected.SiteId)
)

 

 

Would be nice if the And/Or expressions could be indented to show the logic

Level: Powered On

@RusselGove, click on "Format text", as in @CarlosFigueira 's GIF. Anything not covered by that?

Level 8

yes, if there are multiple,nested and/or statements, like in my previous note they are not indented to reflect the logic. 

 

Level: Powered On

a follow-up note, although that GIF is cool, "Format text" is greyed out for me in Powerapps. I haven't been able to use it!