From Test-Scratch-Wiki

(Created page with "{{:Eng:() and () (block)/translate}}{{Block |name = () and () |image = File:2.0 ()_and_().png |category = Operators |type = Eng:Boolean Block|Boolea...")
 
(Translated the first things, template links and Scratch blocks. All of the pages in Tur: prefix need a lot of work and time. Probably I mustn't create page no longer.)
Line 1: Line 1:
 
{{:Eng:() and () (block)/translate}}{{Block
 
{{:Eng:() and () (block)/translate}}{{Block
|name = () and ()
+
|name = () ve ()
 
|image = File:2.0 ()_and_().png
 
|image = File:2.0 ()_and_().png
 
|category = [[Eng:Operators Blocks|Operators]]
 
|category = [[Eng:Operators Blocks|Operators]]
 
|type = [[Eng:Boolean Block|Boolean]]
 
|type = [[Eng:Boolean Block|Boolean]]
 
}}
 
}}
The '''() and ()''' [[Eng:Blocks|block]] is an [[Eng:Operators Blocks|Operators block]] and a [[Eng:Boolean Block|Boolean block]]. The block joins two boolean blocks so they both have to be true to return ''true''. If they are both true, the block returns ''true''; if they are not all true or none true, it returns ''false''.
+
'''() ve ()''' [[Tur:Bloklar|bloğu]] bir [[Tur:Operatörler Blokları|Operatörler bloğu]] ve bir [[Eng:Boolean Block|Boolean block]]. The block joins two boolean blocks so they both have to be true to return ''true''. If they are both true, the block returns ''true''; if they are not all true or none true, it returns ''false''.
  
 
This block can be stacked inside itself, which can be used to test more conditions.
 
This block can be stacked inside itself, which can be used to test more conditions.
  
==Example Uses==
+
==Örnek Kullanımları==
 
This block is used for checking if two or more conditions are true at the same time. Some cases of this are:
 
This block is used for checking if two or more conditions are true at the same time. Some cases of this are:
 
*Lose health if "I'm touching the fire ''and'' I do not have my shield up."
 
*Lose health if "I'm touching the fire ''and'' I do not have my shield up."
  
<scratchblocks>forever
+
<scratchblocks>sürekli tekrarla
if <<touching color [#f48302]?> and <not <(costume #) = [2]>>> then
+
  eğer <<[#f48302] rengine dokunuyor mu?> ve <<(kostüm #) = [2]> değil>> ise
change [lives v] by (-1)</scratchblocks>
+
    [çan v] i (-1) kadar değiştir
 +
  end
 +
end</scratchblocks>
  
 
*Say a button is clicked if the mouse is touching it ''and'' the mouse is down.
 
*Say a button is clicked if the mouse is touching it ''and'' the mouse is down.
  
<scratchblocks>forever
+
<scratchblocks>sürekli tekrarla
say <<mouse down?> and <touching [mouse-pointer v]?>></scratchblocks>
+
  <<fareye basılı mı?> ve <[mouse-pointer v] değiyor mu?>> de
 +
end</scratchblocks>
  
 
== Workaround ==
 
== Workaround ==
Line 28: Line 31:
  
 
<scratchblocks>
 
<scratchblocks>
<not <<not <condition1>> or <not <condition2>>>>
+
<<<<koşul1> değil> veya <<koşul2> değil>> değil></scratchblocks>
</scratchblocks>
 
  
 
Another way to replicate this block is:
 
Another way to replicate this block is:
  
 
<scratchblocks>
 
<scratchblocks>
set [and v] to [false]
+
[ve v] i [hayır] yap
if <condition1> then
+
eğer <koşul1> ise
if <condition2> then
+
  eğer <koşul2> ise
  set [and v] to [true]
+
    [ve v] i [evet] yap
end
+
  end
 
end
 
end
 
</scratchblocks>
 
</scratchblocks>
  
==See Also==
+
==Ayrıca Bakınız==
*[[Eng:() or () (block)|() or ()]]
+
*[[Tur:() veya () (blok)|() veya ()]]
 
*[[Eng:Truth Table|Truth tables]]
 
*[[Eng:Truth Table|Truth tables]]
{{Operators Blocks}}
+
{{Operatörler Blokları}}
[[Category:Operators Blocks]]
+
[[Category:Tur/Operatörler Blokları]]
 
[[de:() und () (Block)]]
 
[[de:() und () (Block)]]
 
[[ja:() かつ () (ブロック)]]
 
[[ja:() かつ () (ブロック)]]

Revision as of 18:46, 10 May 2020

Translate: - English - Türkçe - 中文 
() ve ()
2.0 () and ().png
Category Operators
Type Boolean

() ve () bloğu bir Operatörler bloğu ve bir Boolean block. The block joins two boolean blocks so they both have to be true to return true. If they are both true, the block returns true; if they are not all true or none true, it returns false.

This block can be stacked inside itself, which can be used to test more conditions.

Örnek Kullanımları

This block is used for checking if two or more conditions are true at the same time. Some cases of this are:

  • Lose health if "I'm touching the fire and I do not have my shield up."
sürekli tekrarla 
  eğer <<[#f48302] rengine dokunuyor mu?> ve <<(kostüm #) = [2]> değil>> ise 
    [çan v] i (-1) kadar değiştir
  end
end
  • Say a button is clicked if the mouse is touching it and the mouse is down.
sürekli tekrarla 
  <<fareye basılı mı?> ve <[mouse-pointer v] değiyor mu?>> de
end

Workaround

Main article: List of Block Workarounds


This block can be replicated with the following code:

<<<<koşul1> değil> veya <<koşul2> değil>> değil>

Another way to replicate this block is:

[ve v] i [hayır] yap
eğer <koşul1> ise 
  eğer <koşul2> ise 
    [ve v] i [evet] yap
  end
end

Ayrıca Bakınız

Template:Operatörler Blokları