« Select statement | Main | Substitution using parentheses »

December 14, 2005

Character variable

7thlanguage can use character variable

sample26.7th

title meet_friend_at_ceremony
When entrance ceremony was finished I was called by a girl who was next at the entrance examination.
[My friend=Reiko]
Her name was [My friend] and wearying colorful one piece.
end

Using this source code 7threader generate texts as follows

---------------------- 7threader English Version -----------------------

When ceremony was finished I was called by a girl who was next at the entrance examination.
Her name was Reiko and wearying colorful one piece.

-------- 7threader English Version Copy Right Yuki Nanotabi 2004/2/28 Ver 1.00 ---------

"My friend" is a name of character valuable.

Statement "[My friend=Reiko]" means substitute a character value "Reiko" for the valuable "My friend";

This statement indicate a substitution only and do not displayed it self when 7thleader generate text.
Variable "My friend" does not need to be declared preliminary.

Null character can be substituted like

[My freiand=]

and this means Variable "My friend" has null value.
Also value "My friend" has null value when substitution is not executed.

When the Value of character valuable is null then 7thleader displays value name instead of null value.

sample27.7th

title having_a_tea
I and [My friend], enter the tea room near the University after entrance ceremony.
end

Using this source code 7thleader generate texts as follows
---------------------- 7threader English Version -----------------------

I and My friend, enter the tea room near the University after entrance ceremony.

-------- 7threader English Version Copy Right Yuki Nanotabi 2004/2/28 Ver 1.00 ---------

|

« Select statement | Main | Substitution using parentheses »