Php TBS(TinyButStrong)获取最后一个值

Php TBS(TinyButStrong)获取最后一个值,php,ms-word,tinybutstrong,Php,Ms Word,Tinybutstrong,我有一个Word模板,在其中我通过TBS块并动态显示值。现在我想将实际值与最后显示的值进行比较。有没有可能用文字来解决这个问题 我正在考虑设置一个变量并保存这个变量中的最后一个值。因此,我只需要将自己的变量与实际值进行比较。但我不知道这是否可能。有什么帮助或其他建议吗 范例 *[myblock;block=begin] [myblock.entry] // here I want to check if its the same as the last entry [myblock;block=

我有一个Word模板,在其中我通过TBS块并动态显示值。现在我想将实际值与最后显示的值进行比较。有没有可能用文字来解决这个问题

我正在考虑设置一个变量并保存这个变量中的最后一个值。因此,我只需要将自己的变量与实际值进行比较。但我不知道这是否可能。有什么帮助或其他建议吗

范例

*[myblock;block=begin]
[myblock.entry] // here I want to check if its the same as the last entry
[myblock;block=end]*

TinyButStrong无法在本机中执行此操作

但您可以使用参数«ondata»和PHP用户函数在当前记录中添加上一个值

也可以使用对象的方法(请参见)

PHP:

模板:

*[myblock;block=begin;ondata=f_ondata_user]
[myblock.entry]
[myblock.entry_prev]  // here I want to check if its the same as the last entry
[myblock;block=end]*
*[myblock;block=begin;ondata=f_ondata_user]
[myblock.entry]
[myblock.entry_prev]  // here I want to check if its the same as the last entry
[myblock;block=end]*