Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3454692
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:31:25+00:00 2026-05-18T09:31:25+00:00

I am working on building a Kynetx app that fires a different action on

  • 0

I am working on building a Kynetx app that fires a different action on a domain if it is the second time a user has visited the page. I think I need to use a persistant trail to mark when a user visits a page but I’m not sure how to check the trail to see if a value is already there and matches the current domain.

Current code:

rule put_data_onto_trail {
  select when pageview ".*"
  pre {
    domain = page:url("domain");
  }
  {
    notify("Thanks for visiting #{domain}","You visit has been recorded") with sticky = true;
  }
  fired {
    mark ent:visitedDomains with domain;
  }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T09:31:26+00:00Added an answer on May 18, 2026 at 9:31 am

    KRL provides the seen operator just for this purpose. It takes a regular expression as a string. So your if check could look something like this:

    if seen ".*awesome.*" in ent:mytrail then {
        // take over the world
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a utility page for a web app that I am working
I'm working on building a development tool that is written in JavaScript. This will
I'm working with a team that's building an engine for a variety of 2D
I'm working on building a Silverlight application whereas we want to be able to
I am working on designing and building a desktop application. I am thinking about
I'm building a symbol table for a project I'm working on. I was wondering
I'm slowly building my application to a working state. I'm using two functions called
I'm getting started on building a REST API for a project I'm working on,
I've just started building a prototype application in Django. I started out by working
I'm using jQuery validate on a form I am building and it is working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.