« Expression of condition | Main | Complex case of select with condition »

December 19, 2005

Select with condition

Select statement can be used with condition formula

sample39.7th

title meet_friend_at_celemony
When entrance ceremony was finished I was called by a girl who was next at entrance examination.
{meet_with_friend}
{after_ceremony}
end
select after_ceremony
<my friend==Reiko>I_went_condominium
<my friend==Yosie>I_went_apartment
I_went_back_my_apartment
end
select meet_with_friend
meet_with_Reiko
meet_with_Yosie
end
scene meet_with_Reiko
[my friend=Reiko]
Her name was [my friend] and dressed in colorful one piece.
end
scene meet_with_Yosie
[my friend=Yosie]
Her name was [my friend] and wearing plane blue suit.
end
scene I_went_condominium
I went her condominium with her.
Her room was very timid and colorful funiture is decorated.
end
scene I_went_apartment
I went her apartmen with her.
She prepared me a cup of tea.
end
scene I_went_back_my_apartment
I went back my apartment and have a tea.
end

above example

<my friend==Reiko>
<my friend==Yosie>

are condition formula in case of select statement.
If condition is false then this scene will not selected and if condition is true t
hen this scene will be candidate of selection.

|

« Expression of condition | Main | Complex case of select with condition »