টেমপ্লেট:Iflenge

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
নথি আইকন টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

IF LENgth Greater then or Equal to.

Condition: min ( length , 498 ) ≥ n.

Thus for n > 498 it always gives the else part.

ব্যবহার[সম্পাদনা]

{{iflenge|"string to test"|"test"|"value if true"|"value if false"}}

উদাহরণ[সম্পাদনা]

  • {{iflenge|abc|3|1|0}} → 1
  • {{iflenge|abc|4|1|0}} → 0
  • {{iflenge|ab |3|1|0}} → 1
  • {{iflenge|ab |4|1|0}} → 0
  • {{iflenge|   |3|1|0}} → 1
  • {{iflenge|   |4|1|0}} → 0
  • {{iflenge|1234|4|true|false}} → true
  • {{iflenge|123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123|1000|1|0}} → 1
The first parameter is 593 characters long. We do not check against 1000, but against 498, returning true.

আরও দেখুন[সম্পাদনা]