「ITTS:ITTS Scrip:Brance process」修訂間的差異

出自ITTS
跳至導覽 跳至搜尋
行 1: 行 1:
 
'''Braces Process'''
 
'''Braces Process'''
  
brace is: {}
+
'''brace is: {}'''
  
 
Brace could use in<br>
 
Brace could use in<br>

於 2020年3月23日 (一) 16:05 的修訂

Braces Process

brace is: {}

Brace could use in
variable assignment Expression process smart format process

when each process string has brace appear, it will send this formation to brace process to pre-process the formation
Example:
variable assignment:
A{1}=1 means A1=1
B{['&VAR:A1']}=200
==> B{1} ==200
==> B1=200
smart format :
S1:STR=ABCD (string variable S1=ABCD
A1=1
A2=4
['&STR_VAR:S1':S([{['&VAR:A1']}][{['&VAR:A2']}])]
==>['&STR_VAR:S1':S([1][4])]
=AD
expression:
S{['&VAR:A2']}:STR=['&STR_VAR:S1':S([{['&VAR:A1']}][{['&VAR:A2']}])]
S4:STR=['&STR_VAR:S1':S([1][4])]
String variable S4=AD