SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.24k stars 1k forks source link

CONDICIONAL COM USO DO OU (OR) #9271

Open marcosantoniorf opened 11 months ago

marcosantoniorf commented 11 months ago

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

Additional environment details

No response

Issue description

Olá, pessoal! Boa tarde!

Eu estou tentando utilizar uma condição SE juntamente com o operador OU (OR) no recurso 'Mostrar ou ocultar colunas em um formulário de lista ou biblioteca' no SharePoint, entretanto, está aparecendo mensagem de função inválida.

Código que estou utilizando: =if(([$AGENTE] == 'KLEBSIELA PNEUMONIAE' || ([$AGENTE] == 'PSEUDOMONAS AERUGINOSA'), 'true', 'false')

Poderiam me informar se há suporte para utilizar SE juntamente com E e OU?

Muito obrigado.

Marcos Antônio

ghost commented 11 months ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

nick-pape commented 11 months ago

Google translate of above:

Hello everyone! Good afternoon!

I'm trying to use an IF condition along with the OR (OR) operator in the 'Show or hide columns in a list or library form' feature in SharePoint, however, I'm getting invalid function message.

Code I'm using: =if(([$AGENTE] == 'KLEBSIELA PNEUMONIAE' || ([$AGENTE] == 'PSEUDOMONAS AERUGINOSA'), 'true', 'false')

Could you let me know if it's supported to use SE along with AND and OR?

Thank you very much.

Mark Anthony