From 4b7862988b8b012e4f003edc0038597e5acdcb34 Mon Sep 17 00:00:00 2001 From: Julien Deswaef Date: Tue, 10 Sep 2024 17:25:17 +0200 Subject: [PATCH] Fixes incorrect rendering of html characters in Animation and Variables > Conditions example --- .../02_Animation_And_Variables/03_Conditions/description.mdx | 4 ++-- .../02_Animation_And_Variables/03_Conditions/description.mdx | 2 +- .../02_Animation_And_Variables/03_Conditions/description.mdx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/examples/en/02_Animation_And_Variables/03_Conditions/description.mdx b/src/content/examples/en/02_Animation_And_Variables/03_Conditions/description.mdx index e7bf84c5f9..a9ae76c818 100644 --- a/src/content/examples/en/02_Animation_And_Variables/03_Conditions/description.mdx +++ b/src/content/examples/en/02_Animation_And_Variables/03_Conditions/description.mdx @@ -19,7 +19,7 @@ You can read more about comparison operators on MDN. Logical operators allow conditions to be combined. -&$amp; +&& checks that both conditions are true. The circle in this example has a black fill when it is toward the horizontal center of the canvas, and it has a white fill when it is not. This is because of the if statement on line @@ -28,4 +28,4 @@ no more than 300. || checks that at least one of the conditions is true. The circle reverses horizontal speed when it reaches the left or right edge of the canvas because of the if statement -on line 75. \ No newline at end of file +on line 75. diff --git a/src/content/examples/hi/02_Animation_And_Variables/03_Conditions/description.mdx b/src/content/examples/hi/02_Animation_And_Variables/03_Conditions/description.mdx index b0fd04d705..e410255180 100644 --- a/src/content/examples/hi/02_Animation_And_Variables/03_Conditions/description.mdx +++ b/src/content/examples/hi/02_Animation_And_Variables/03_Conditions/description.mdx @@ -9,5 +9,5 @@ oneLineDescription: जब आपका स्केच चल रहा हो तुलना ऑपरेटर दो मानों की तुलना करके स्थितियाँ बनाने में मदद करते हैं। इस उदाहरण में, पंक्ति 69 पर if कथन के कारण रंग कम से कम 360 होने पर वृत्त का रंग शून्य पर रीसेट हो जाता है। आप तुलना ऑपरेटरों के बारे में अधिक पढ़ सकते हैं MDN पर। -तार्किक संचालक शर्तों को संयोजित करने की अनुमति देते हैं। &$amp; जांचता है कि दोनों स्थितियां सच हैं। इस उदाहरण में वृत्त जब कैनवास के क्षैतिज केंद्र की ओर होता है तो उसमें काला भराव होता है, और जब ऐसा नहीं होता है तो उसमें सफेद भराव होता है। ऐसा पंक्ति 45 पर दिए गए if कथन के कारण है, जो जाँचता है कि वृत्त की x स्थिति कम से कम 100 है और 300 से अधिक नहीं है। +तार्किक संचालक शर्तों को संयोजित करने की अनुमति देते हैं। && जांचता है कि दोनों स्थितियां सच हैं। इस उदाहरण में वृत्त जब कैनवास के क्षैतिज केंद्र की ओर होता है तो उसमें काला भराव होता है, और जब ऐसा नहीं होता है तो उसमें सफेद भराव होता है। ऐसा पंक्ति 45 पर दिए गए if कथन के कारण है, जो जाँचता है कि वृत्त की x स्थिति कम से कम 100 है और 300 से अधिक नहीं है। || जांचता है कि इनमें से कम से कम एक स्थितियाँ सत्य हैं। जब वृत्त पंक्ति 75 पर दिए गए if कथन के कारण कैनवास के बाएँ या दाएँ किनारे तक पहुँचता है तो वह क्षैतिज गति को उलट देता है। diff --git a/src/content/examples/zh-Hans/02_Animation_And_Variables/03_Conditions/description.mdx b/src/content/examples/zh-Hans/02_Animation_And_Variables/03_Conditions/description.mdx index 1bba8dd37f..15b15b02ee 100644 --- a/src/content/examples/zh-Hans/02_Animation_And_Variables/03_Conditions/description.mdx +++ b/src/content/examples/zh-Hans/02_Animation_And_Variables/03_Conditions/description.mdx @@ -9,4 +9,4 @@ if 和 else 语句用于规定一组特定的 MDN 上的相关文档。 -通过逻辑运算符,可以将条件进行组合。&$amp; 检查两个条件是否同时为真。在这个例子中,当圆位于画布的水平中心附近时,它的填充颜色为黑色;当它不在这个位置时,填充颜色为白色。这是因为第45行的 if 语句会检查圆的 x 坐标,看它是否大于等于 100 且不超过 300。而 || 检查的则是两个条件中至少有一个为真的情况。根据第75行的 if 语句,当圆到达画布的左边缘或右边缘时,它会保持水平速度并调头。 \ No newline at end of file +通过逻辑运算符,可以将条件进行组合。&& 检查两个条件是否同时为真。在这个例子中,当圆位于画布的水平中心附近时,它的填充颜色为黑色;当它不在这个位置时,填充颜色为白色。这是因为第45行的 if 语句会检查圆的 x 坐标,看它是否大于等于 100 且不超过 300。而 || 检查的则是两个条件中至少有一个为真的情况。根据第75行的 if 语句,当圆到达画布的左边缘或右边缘时,它会保持水平速度并调头。