« Select with condition | Main | Inhibition of scene »

December 19, 2005

Complex case of select with condition

Complex case is possible using select statement with condition formula as follows

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==Reiko>I_went_to_tea_room
<my friend==Yosie>I_went_apartment
<my friend==Yosie>I_went_shopping
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
scene I_went_to_tea_room
We went tea room near the University.
end
scene I_went_shopping
We went shopping near her apartment.
end

If condition

<my friend==Reiko>

is true then select statement is same as following.
select after_ceremony
I_went_condominium
I_went_to_tea_room
I_went_back_my_apartment
end

If condition

<my friend==Yosie>

is true the select statement is same as following

select after_ceremony
I_went_apartment
I_went_shopping
I_went_back_my_apartment
end

|

« Select with condition | Main | Inhibition of scene »