List包含相反条件的用法 [英] Listcontains usage with opposite condition

查看:322
本文介绍了List包含相反条件的用法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在coldfusion中有Listcontains函数有相反的运算符选项吗?我需要检查以确保一个值不存在于字符串中,但将其与另一个运算符组合。

Is there a opposite operator option for the Listcontains function in coldfusion? I need to check to make a sure a value does not exist in a string but combine this with another operator.

这样的排序:

   <cfif checkstring EQ 1 and does not contain listcontains(idcheck,"id1") >


推荐答案

< cfif checkstring eq 1而不是listcontains(idcheck,'id1')>

或cfscript

if(checkstring == 1&&!listcontains(idcheck,'id1'))

这篇关于List包含相反条件的用法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆