Hi Lei,
The syntax for formula node would be
if (condition)
{statements to be performed if condition is true}
else
{statements to be performed if condition is true}
As a specific example you can copy and paste the following code into a formula node with one input x and two outputs y and z.
if (x<5)
{
y=4;
z=8;
}
else
{
y=8;
z=4;
}
You can also search on LabVIEW VI, Function and How-to help for more information on formula node in LabVIEW.
I hope it helps.
Ankita A.