Home > Contents > Index >
commercecontext:isuserinsegment
Establish whether the current user profile matches specified segment.
Syntax
<commercecontext:isuserinsegment id="segment ID
" varname="variable name" />Parameters
id (required)
- Input parameter that specifies the asset ID of the Segment
varname (required)
- Name of the output variable to create.
Description
This tag is useful to find whether the current user belongs to a particular segment without invoking the more computationally intensive commercecontext:calculatesegments, which evaluates all segments. The output value is either true or false.
Example
The following checks whether the user belongs to segment whose asset id is 12345:
<commercecontext:isuserinsegment segmentid="12345" varname="isit"/> Is this user in segment? <ics:getvar name="isit"/>
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.