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

Next revision
Previous revision
engine:import:conditionalembed [2018/08/14 20:58] – created dcummingengine:import:conditionalembed [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 1: Line 1:
-conditionalembed+====== ConditionalEmbed ======
  
-==== ConditionalEmbed ==== 
 Conditionally embed a file containing additional definition language elements. Conditionally embed a file containing additional definition language elements.
  
-==== Phase ====+===== Phase =====
 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 ===== 
-**ConditionalEmbedEmbed a file if the current day is Monday or + 
-Tuesday.**+Using [[engine:import:setvar2date|SetVar2Date]], embed a file if the current day is Monday or Tuesday. 
 +<code>
 SetVar2Date(TODAY, "*", "%%A"); SetVar2Date(TODAY, "*", "%%A");
 ConditionalEmbed("montue_ttidef", "*(Monday|Tuesday)", $TODAY); ConditionalEmbed("montue_ttidef", "*(Monday|Tuesday)", $TODAY);
 +</code>
 +
 +===== See Also =====
 +
 +[[engine:import|Import Engine Functions]] \\
 +[[cli:sync_fields|Sync Engine Fields]] \\
 +[[cli:tmss10sync|TMSS10Sync]]
 +
 +{{tag> import_engine sync_engine}}
engine/import/conditionalembed.1534280312.txt.gz · Last modified: 2025/01/21 22:07 (external edit)