「ITTS:ITTS Scrip:Brance process」修訂間的差異
跳至導覽
跳至搜尋
Vincentcheng2116(討論 | 貢獻) (已建立頁面,內容為 "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…") |
Vincentcheng2116(討論 | 貢獻) |
||
(未顯示同一使用者於中間所作的 4 次修訂) | |||
行 1: | 行 1: | ||
− | Braces Process | + | '''Braces Process''' |
− | brace is: {} | + | '''brace is: {}'''<br> |
− | Brace could use in | + | ([http://intretech-tw.synology.me/ITTS/Scrip_Command/ScripCommand/Braces_Process.htm Online help Braces_Process.htm])<br> |
− | variable assignment | + | |
+ | Brace could use in<br> | ||
+ | '''variable assignment | ||
Expression process | Expression process | ||
− | smart format process | + | smart format process''' |
+ | <br> | ||
when each process string has brace appear, it will send this formation to brace process to pre-process the formation | when each process string has brace appear, it will send this formation to brace process to pre-process the formation | ||
+ | <br> | ||
+ | Example:<br> | ||
+ | variable assignment:<br> | ||
+ | A{1}=1 means A1=1 <br> | ||
+ | B{['&VAR:A1']}=200<br> | ||
+ | ==> B{1} ==200<br> | ||
+ | ==> B1=200<br> | ||
+ | '''smart format''' :<br> | ||
+ | S1:STR=ABCD (string variable S1=ABCD<br> | ||
+ | A1=1<br> | ||
+ | A2=4<br> | ||
+ | ['&STR_VAR:S1':S([{['&VAR:A1']}][{['&VAR:A2']}])]<br> | ||
+ | ==>['&STR_VAR:S1':S([1][4])]<br> | ||
+ | =AD | ||
+ | <br> | ||
+ | expression:<br> | ||
+ | S{['&VAR:A2']}:STR=['&STR_VAR:S1':S([{['&VAR:A1']}][{['&VAR:A2']}])]<br> | ||
+ | S4:STR=['&STR_VAR:S1':S([1][4])]<br> | ||
+ | String variable S4=AD<br> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | [[http://intretech-tw.synology.me/mediawiki/index.php?title=ITTS_Scrip ITTS_Scrip_Command]] | |
− | |||
− | |||
− |
於 2020年10月28日 (三) 14:56 的最新修訂
Braces Process
brace is: {}
(Online help Braces_Process.htm)
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