Commit f38c6c44 authored by Christian Tischer's avatar Christian Tischer

Add IJ Macro Programming Workshop

parent 5c0feec8
......@@ -550,6 +550,32 @@ function measureCells() {
Solution:
- ../macros/CountCells-Functions.ijm
## Indentations
Indentations (by multiple spaces are tabs) are very important for code readability!
In python they are even mandatory, your code will not run if you do not get the indentations right!
Below code will run, but it really is not readable!
```
s = "Hello"
function printString( s )
{
print ( s );
}
```
This is much better:
```
s = "Hello"
function printString( s )
{
print( s );
}
```
## Analyzing multiple images in one folder
......@@ -694,14 +720,34 @@ function processFile( path )
}
```
### Concepts
### If-else statement
Conditional code execution
#### Activity: Interactively explore if-else statements
#### Recursion
```
a = 10;
if ( a > 100 )
{
print( "Yeah!" );
}
else
{
print( "Nah..." );
}
```
### Recursion
A function calling itself
#### If-else statement
Conditional code execution
## ImageJ2 way of retrieving parameters via graphical user interface (GUI)
...
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment