Docs

API

flags property

loopic.flags

  • flags Object
    • play Boolean - true if play was called
    • update Boolean - true if update was called
    • stop Boolean - true if stop was called
    • next Boolean - true if next was called

Description

Property containing information which can be useful if the template logic needs to know if play, update, stop or next method has ever been called by CasparCG.

Example

const playWasCalled = loopic.flags.play; // or
const updateWasCalled = loopic.flags.update; // or
const stopWasCalled = loopic.flags.stop; // or
const nextWasCalled = loopic.flags.next;