TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


engine:import:conditionalembed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
engine:import:conditionalembed [2020/03/05 01:57] – [Example] Scott Cunliffeengine:import:conditionalembed [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 6: Line 6:
 This instruction is used by the TapeTrack INI Engine. This instruction is used by the TapeTrack INI Engine.
  
-''ConditionalEmbed(filepath, filter, value);''+===== Syntax=====
  
-//string filepath;//\\ +''ConditionalEmbed(filepathfiltervalue);''
-//string filter;//\\ +
-//string value;//\\+
  
-|filepath| The full or relative path to a file that you wish to embed.| +^ Variable ^ Type ^ Description ^ Min Length ^ Max Length ^ 
-|filter| A filter value.| +|filepath| String | The full or relative path to a file that you wish to embed.|1|256
-|string| A string value to be compared against the filter value.|+|filter| String | A filter value.|1|1024
 +|string| String | A string value to be compared against the filter value.|1|256|
  
 ===== Example ===== ===== Example =====
  
-Embed a file if the current day is Monday or +Using [[engine:import:setvar2date|SetVar2Date]], embed a file if the current day is Monday or Tuesday. 
-Tuesday. +<code>
-<sxh>+
 SetVar2Date(TODAY, "*", "%%A"); SetVar2Date(TODAY, "*", "%%A");
 ConditionalEmbed("montue_ttidef", "*(Monday|Tuesday)", $TODAY); ConditionalEmbed("montue_ttidef", "*(Monday|Tuesday)", $TODAY);
-</sxh>+</code>
  
 ===== See Also ===== ===== See Also =====
engine/import/conditionalembed.1583373437.txt.gz · Last modified: 2025/01/21 22:07 (external edit)