Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new boolean operators #465

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

stephenquan
Copy link

@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.

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:

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:

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:

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:

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:

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
Author

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

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
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

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:

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

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.

3 participants