• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

array

Guest
Jul 25, 2007 Jul 25, 2007

Copy link to clipboard

Copied

I have 5 records in my file. I am reading file . If ID is null i want to display null there. how can I do that
Out put i want
1
2
NULL
4
etc
<cfset mydocarray=myXMLDocument.PA.CA>
<cfloop from="1" to="#arraylen(mydoc)#" index="i">
<p>
<cfoutput>
<Cfif #trim(mydoc .ID)# neq "">
#mydocarray
.ID# <BR />
<cfelse>
NULL
</Cfif>
TOPICS
Advanced techniques

Views

231

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 25, 2007 Jul 25, 2007

Copy link to clipboard

Copied

LATEST
 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation