Showing posts with label syntax. Show all posts
Showing posts with label syntax. Show all posts

Friday, April 27, 2012

[PHP] If-Then-Else Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then-Else in PHP programming language. This source code is to show how to do If-Then-Else statement in PHP language. Here's the template:


if <condition> {
       <statement if true> 
} else {
       <statement if false>
}


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[PHP] If-Then Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then in PHP programming language. This source code is to show how to do If-Then statement in PHP language. Here's the template:


if <condition> {
       <statement if true> 
}


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[Java] If-Then-Else Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then-Else in Java programming language. This source code is to show how to do If-Then-Else statement in Java language. Here's the template:


if <condition> {
       <statement if true> 
} else {
       <statement if false>
}


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[Java] If-Then Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then in Java programming language. This source code is to show how to do If-Then statement in  Java language. Here's the template:


if <condition> {
       <statement if true> 
}


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







Saturday, April 21, 2012

[Python] If-Then-Else Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then-Else in Python programming language. This source code is to show how to do If-Then-Else statement in Python language. Here's the template:


if <condition>:
       <statement if true> 
else:
       <statement if false>




Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[Python] If-Then Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then in Python programming language. This source code is to show how to do If-Then statement in Python language. Here's the template:


if <condition>:
       <statement if true> 




Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







Tuesday, April 17, 2012

[C++] If-Then-Else Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then-Else in C++ programming language. This source code is to show how to do If-Then-Else statement in C++ language. Here's the template:


if <condition> {
       <statement if true> 
} else {
       <statement if false>
}


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[C++] If-Then Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then in C++ programming language. This source code is to show how to do If-Then statement in C++ language. Here's the template:


if <condition> {
       <statement if true> 
}


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[Ada] Procedure Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax Procedure in Ada programming language. This source code is to show how to do Procedure statement in Ada language. Here's the template:


procedure <ProcedureName>(<input1>,...,<inputN>: in <value-type>;<output1>,...,<outputN>: out <value-type>) is
begin
       <Statement>
end <ProcedureName>;

Note:   <input1>,...,<inputN>: in <value-type>   is optional, only use it if there is input required in the procedure, while <output1>,...,<outputN>: out <value-type> if there is output required in the procedure.

Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[Ada] Function Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax Function in Ruby programming language. This source code is to show how to do  Function statement in Ruby language. Here's the template:


function <FunctionName>(<input1>,...,<inputN>:<value-type>) return <value-type> is
begin
       <Statement>
       return <value>;
end <FunctionName>;

Note:  <input1>,...,<inputN>:<value-type>  is optional, only use it if there is input required in the function

Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[Ada] Case Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax Case in Ada programming language. This source code is to show how to do Case statement in Ada language. Here's the template:



case <variable name> is
   when <variable condition 1> =>
       <statement 1 if variable fulfills condition 1>
   when <variable condition 2> =>
       <statement 2 if variable fulfills condition 2>
   when <variable condition 3> =>
       <statement 3 if variable fulfills condition 3>
   when <variable condition 4> =>
       <statement 4 if variable fulfills condition 4>
   when <variable condition N> =>
       <statement N if variable fulfills condition N>
   when others =>
       <statement if variable doesn't fulfill any condition>
end case;


Note: " when others" is optional


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







Saturday, April 14, 2012

[C#] If-Then-Else Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then-Else in C# programming language. This source code is to show how to do If-Then-Else statement in C# language. Here's the template:


if <condition> {
       <statement if true> 
} else {
       <statement if false>
}


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[C#] If-Then Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then in C# programming language. This source code is to show how to do If-Then statement in C# language. Here's the template:


if <condition> {
       <statement if true> 
}


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[Ruby] Procedure Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax Procedure in Ruby programming language. This source code is to show how to do Procedure statement in Ruby language. Here's the template:


def <ProcedureName>(<input1>,...,<inputN>)
       <Statement>
end

Note:  <input1>,...,<inputN>  is optional, only use it if there is input required in the function

Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[Ruby] Function Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax Function in Ruby programming language. This source code is to show how to do  Function statement in Ruby language. Here's the template:


def <FunctionName>(<input1>,...,<inputN>)
       <Statement>
       return <value>
end

Note:  <input1>,...,<inputN>  is optional, only use it if there is input required in the function

Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[Ruby] Case Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax Case in Ruby programming language. This source code is to show how to do Case statement in Ruby language. Here's the template:



case <variable name>
   when <variable condition 1> then
       <statement 1 if variable fulfills condition 1>
   when <variable condition 2> then
       <statement 2 if variable fulfills condition 2>
   when  <variable condition 3> then
       <statement 3 if variable fulfills condition 3>
   when  <variable condition 4> then
       <statement 4 if variable fulfills condition 4>
   when  <variable condition N> then
       <statement N if variable fulfills condition N>
   else
       <statement if variable doesn't fulfill any condition>
end


Note: "else" is optional


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[Ruby] If-Then-Else Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then-Else in Ruby programming language. This source code is to show how to do If-Then-Else statement in Ruby language. Here's the template:


if <condition>
       <statement if true> 
else
       <statement if false>
end


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[Ruby] If-Then Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then in Ruby programming language. This source code is to show how to do If-Then statement in Ruby language. Here's the template:


if <condition>
       <statement if true> 
end


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







[Ada] If-Then-Else Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then-Else in Ada programming language. This source code is to show how to do If-Then-Else statement in Ada language. Here's the template:


if <condition> then
       <statement if true> 
else
       <statement if false>
end if;


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)







Friday, April 13, 2012

[Ada] If-Then Syntax

          Hello, Reader ^^! Back again with source code. This time is a basic syntax If-Then in Ada programming language. This source code is to show how to do If-Then statement in Ada language. Here's the template:


if <condition> then
       <statement if true> 
end if;


Okay, that's all I can say. Thank you for reading ^^!

Download/View Source Code
Dropbox
Dropbox (Repository)
GitHub
GitHub (Repository)