Skip to content

Add new boolean operators#465

Merged
jfversluis merged 10 commits intoMicrosoftDocs:mainfrom
stephenquan:main
Mar 20, 2025
Merged

Add new boolean operators#465
jfversluis merged 10 commits intoMicrosoftDocs:mainfrom
stephenquan:main

Conversation

@stephenquan
Copy link
Contributor

@stephenquan stephenquan commented Sep 6, 2024

Document the new boolean operators that are being introduced in CommunityToolkit/Maui#2181

Here are the new operators / constants being documented:

  • New conditional operator: ? :
  • New boolean logical operators: && || (alternates: and or)
  • New equality operators: == !=
  • New comparison operators: >= > <= < (alternates: ge gt le lt)
  • Negate operator: !
  • New constants: true or false

Document differences these operators look between C# and XAML (because of XAML escaping).

By XAML escaping I mean that && in XAML looks like &amp;&amp; and >= in XAML looks like &gt;=.

To make it developers to use these operators in either C# and XAML, alternate English-only operators were also given.

Also, because the XAML escaping didn't render correctly, it was necessary to put code escpaing on all operators. i.e. even the existing operators needed to be escaped. This caused most of the file to be updated even though only a handful of new operators were introduced.

@learn-build-service-prod
Copy link

Learn Build status updates of commit 8ebe1bc:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/includes/math-expression-operations.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@learn-build-service-prod
Copy link

Learn Build status updates of commit e6f496f:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/includes/math-expression-operations.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@learn-build-service-prod
Copy link

Learn Build status updates of commit e00dfcf:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/includes/math-expression-operations.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@learn-build-service-prod
Copy link

Learn Build status updates of commit 57280a6:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/includes/math-expression-operations.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@learn-build-service-prod
Copy link

Learn Build status updates of commit b472541:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/includes/math-expression-operations.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@learn-build-service-prod
Copy link

Learn Build status updates of commit f316b4b:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/includes/math-expression-operations.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@stephenquan
Copy link
Contributor Author

@microsoft-github-policy-service agree company="Esri"

@learn-build-service-prod
Copy link

Learn Build status updates of commit 6d4c826:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/includes/math-expression-operations.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@stephenquan
Copy link
Contributor Author

@jfversluis @TheCodeTraveler do you know who may be able to review this documentation PR?

@bijington
Copy link
Collaborator

I'll sort this 👍

Copy link
Collaborator

@bijington bijington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stephenquan thank you for this update. I have just added one comment, please let me know what you think

@learn-build-service-prod
Copy link

Learn Build status updates of commit 4b85c05:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/includes/math-expression-operations.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@learn-build-service-prod
Copy link

Learn Build status updates of commit 3d79428:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/includes/math-expression-operations.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

Copy link
Collaborator

@bijington bijington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @stephenquan

@learn-build-service-prod
Copy link

Learn Build status updates of commit 7a16b0f:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/includes/math-expression-operations.md ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@stephenquan
Copy link
Contributor Author

Hi @bijington, can we merge/push this doc update? Members of my team are bookmarking this unmerged doc PR as a reference since the public doc is behind.

@bijington
Copy link
Collaborator

I don't have the power but @jfversluis does

@jfversluis
Copy link
Contributor

This change has not been merged and released in the toolkit, right?

@TheCodeTraveler
Copy link
Contributor

We merged the PR on January 16 and Released it on January 17

Assuming this Docs PR is approved and nothing is blocking it, it should be merged.

@jfversluis
Copy link
Contributor

Ah the proposal was still open thats why I thought it was still ongoing! Lets do it!

@jfversluis jfversluis merged commit 64c8e88 into MicrosoftDocs:main Mar 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maui The .NET MAUI Community Toolkit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants