Description:
Execute multiple code blocks in parallel.
Syntax:
fork
…
fork
…
Note:
The function executes multiple code blocks in parallel and assigns the result of executing each code block to the corresponding fork cell.
Example:
A |
B |
|
1 |
fork [[1,20,6,14,5],[32,8]] |
//fork |
2 |
|
=connect("demo") |
3 |
|
=B2.query("select * from EMPLOYEE where EID in (?) ",A1) |
4 |
fork [[1,20,6,14,5],[32,8]],"F" |
//fork |
5 |
|
=connect("demo") |
6 |
|
=B5.query("select * from EMPLOYEE where EID in (?) and GENDER=?",A4(1),A4(2)) |