# \[question\] script create tag from all history tag with all the difference of one hour

**URL:** <https://forum.inductiveautomation.com/t/question-script-create-tag-from-all-history-tag-with-all-the-difference-of-one-hour/43820>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [February 25, 2021, 10:53am UTC](https://forum.inductiveautomation.com/t/question-script-create-tag-from-all-history-tag-with-all-the-difference-of-one-hour/43820 "2021-02-25T10:53:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xrthefrench](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/xrthefrench/32/21746_2.png) [@xrthefrench](https://forum.inductiveautomation.com/u/xrthefrench)\
**Post date:** [February 25, 2021, 10:53am UTC](https://forum.inductiveautomation.com/t/question-script-create-tag-from-all-history-tag-with-all-the-difference-of-one-hour/43820/1 "2021-02-25T10:53:07Z")

</div>

Hello so I want to make a timed gateway script that create a tag from all stored tags if they doesn’t exist

and make difference of it every hours like TagValueNow=20 TagValue1HourBefore=10 tagValueDiff=10  
how should i do ?
